Marshal.ChangeWrapperHandleStrength(Object, Boolean) Méthode

Définition

Modifie la force du handle CCW (COM Callable Wrapper) 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 le wrapper CCW (COM Callable Wrapper) contient un handle de références comptabilisées. Le handle est fort si le décompte de références sur le wrapper CCW (COM Callable Wrapper) est supérieur à zéro ; sinon, il est faible.

fIsWeak
Boolean

true pour changer la force du handle sur le paramètre otp afin de l'affaiblir quel que soit son décompte de références ; false afin que la force du handle sur otp soit fonction du décompte de références.

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 à