Marshal.ChangeWrapperHandleStrength(Object, Boolean) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.