Marshal.ChangeWrapperHandleStrength(Object, Boolean) Méthode

Définition

Modifie la force du handle COM Callable Wrapper (CCW) d’un objet.

public:
 static void ChangeWrapperHandleStrength(System::Object ^ otp, bool fIsWeak);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak);
public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak);
[System.Security.SecurityCritical]
public static void ChangeWrapperHandleStrength(object otp, bool fIsWeak);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member ChangeWrapperHandleStrength : obj * bool -> unit
static member ChangeWrapperHandleStrength : obj * bool -> unit
[<System.Security.SecurityCritical>]
static member ChangeWrapperHandleStrength : obj * bool -> unit
Public Shared Sub ChangeWrapperHandleStrength (otp As Object, fIsWeak As Boolean)

Paramètres

otp
Object

Objet dont CCW contient un handle de référence compté. Le handle est fort si le nombre de références sur la CCW est supérieur à zéro ; sinon, il est faible.

fIsWeak
Boolean

true pour modifier la force du handle sur le otp paramètre en faible, quel que soit son nombre de références ; false pour réinitialiser la force du handle sur otp la référence à compter.

Attributs

Remarques

ChangeWrapperHandleStrength est utilisé pour la fonctionnalité de regroupement d’objets et ne doit jamais être appelé directement par le code utilisateur.

S’applique à