IdentityVerifier.CheckAccess(EndpointIdentity, AuthorizationContext) 方法

定义

实现要验证标识的方法。

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

返回

Boolean

如果验证了标识,则为 true;否则为 false。 默认值为 false

适用于