Método Marshal.ChangeWrapperHandleStrength (Object, Boolean)
Dica
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Altera a intensidade de um objeto COM Callable Wrapper identificador (CCW).
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
[SecurityCriticalAttribute]
public static void ChangeWrapperHandleStrength(
object otp,
bool fIsWeak
)
public:
[SecurityCriticalAttribute]
static void ChangeWrapperHandleStrength(
Object^ otp,
bool fIsWeak
)
[<SecurityCriticalAttribute>]
static member ChangeWrapperHandleStrength :
otp:Object *
fIsWeak:bool -> unit
<SecurityCriticalAttribute>
Public Shared Sub ChangeWrapperHandleStrength (
otp As Object,
fIsWeak As Boolean
)
Parâmetros
otp
Type: System.ObjectO objeto cujo CCW contém um identificador contado de referência. O identificador será forte se a contagem de referência no CCW for maior que zero; caso contrário, será fraca.
fIsWeak
Type: System.BooleantruePara alterar a intensidade da alça no otp parâmetro fraca, independentemente de sua contagem de referência; false para redefinir a intensidade da alça em otp ser contados como referência.
Comentários
ChangeWrapperHandleStrengthé usado para funcionalidade ao pool de objetos e nunca deve ser chamado pelo código do usuário diretamente.
Segurança
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Informações de Versão
.NET Framework
Disponível desde 1.1
Confira Também
Classe Marshal
Namespace System.Runtime.InteropServices
Retornar ao início