Marshal.ChangeWrapperHandleStrength(Object, Boolean) Método

Definição

Altera a intensidade do identificador CCW (COM Callable Wrapper) de um objeto.Changes the strength of an object's COM Callable Wrapper (CCW) handle.

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)

Parâmetros

otp
Object

O objeto cujo CCW contém um identificador contado de referência.The object whose CCW holds a reference counted handle. O identificador será forte se a contagem de referência no CCW for maior que zero; caso contrário, será fraca.The handle is strong if the reference count on the CCW is greater than zero; otherwise, it is weak.

fIsWeak
Boolean

true para alterar a intensidade do identificador no parâmetro otp para fraca, independentemente de sua contagem de referência; false para redefinir a intensidade do identificador em otp para ter contagem de referência.true to change the strength of the handle on the otp parameter to weak, regardless of its reference count; false to reset the handle strength on otp to be reference counted.

Atributos

Comentários

ChangeWrapperHandleStrength é usado para a funcionalidade de pooling de objetos e nunca deve ser chamado diretamente pelo código de usuário.ChangeWrapperHandleStrength is used for object pooling functionality and should never be called by user code directly.

Aplica-se a