SynchronizationAttribute.IsContextOK 메서드

정의

컨텍스트 매개 변수가 컨텍스트 특성의 요구 사항을 충족시키는지 여부를 나타내는 부울 값을 반환합니다.

public:
 override bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Overrides Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean

매개 변수

ctx
Context

확인할 컨텍스트입니다.

msg
IConstructionCallMessage

이 특성이 표시된 컨텍스트 바인딩 개체를 생성할 때 수집된 정보입니다. 사용할 수 있는 컨텍스트인지 여부를 확인하는 동안 SynchronizationAttribute가 컨텍스트의 속성을 검사하고, 추가하고, 제거할 수 있습니다.

반환

컨텍스트에 전달된 것이 OK이면 true이고, 그렇지 않으면 false입니다.

특성

예외

ctx 또는 msg 매개 변수가 null인 경우

적용 대상