IdentityVerifier.CheckAccess(EndpointIdentity, AuthorizationContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作一種驗證身份的方法。
public:
abstract bool CheckAccess(System::ServiceModel::EndpointIdentity ^ identity, System::IdentityModel::Policy::AuthorizationContext ^ authContext);
public abstract bool CheckAccess(System.ServiceModel.EndpointIdentity identity, System.IdentityModel.Policy.AuthorizationContext authContext);
abstract member CheckAccess : System.ServiceModel.EndpointIdentity * System.IdentityModel.Policy.AuthorizationContext -> bool
Public MustOverride Function CheckAccess (identity As EndpointIdentity, authContext As AuthorizationContext) As Boolean
參數
- identity
- EndpointIdentity
EndpointIdentity要驗證。
- authContext
- AuthorizationContext
測試 AuthorizationContext 的 identity 對象。
傳回
true若身份被驗證;否則,。 false 預設值為 false。