Marshal.ChangeWrapperHandleStrength(Object, Boolean) 메서드

정의

개체의 CCW(COM Callable Wrapper) 핸들 강도를 변경합니다.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)

매개 변수

otp
Object

CCW에 참조 횟수가 계산된 핸들이 있는 개체입니다.The object whose CCW holds a reference counted handle. CCW의 참조 횟수가 0보다 크면 핸들이 강하고, 그렇지 않으면 핸들이 약합니다.The handle is strong if the reference count on the CCW is greater than zero; otherwise, it is weak.

fIsWeak
Boolean

참조 횟수에 관계없이 otp 매개 변수에 대한 핸들 강도를 약하게 변경하려면 true이고, 참조 횟수가 계산될 otp에 대한 핸들 강도를 다시 설정하려면 false입니다.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.

특성

설명

ChangeWrapperHandleStrength 는 개체 풀링 기능에 사용 되며 사용자 코드에서 직접 호출 하면 안 됩니다.ChangeWrapperHandleStrength is used for object pooling functionality and should never be called by user code directly.

적용 대상