AuthorizationContext.CreateDefaultAuthorizationContext 方法

定义

对所有指定的授权策略进行评估并创建一个 AuthorizationContext

public:
 static System::IdentityModel::Policy::AuthorizationContext ^ CreateDefaultAuthorizationContext(System::Collections::Generic::IList<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authorizationPolicies);
public static System.IdentityModel.Policy.AuthorizationContext CreateDefaultAuthorizationContext (System.Collections.Generic.IList<System.IdentityModel.Policy.IAuthorizationPolicy> authorizationPolicies);
static member CreateDefaultAuthorizationContext : System.Collections.Generic.IList<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.IdentityModel.Policy.AuthorizationContext
Public Shared Function CreateDefaultAuthorizationContext (authorizationPolicies As IList(Of IAuthorizationPolicy)) As AuthorizationContext

参数

authorizationPolicies
IList<IAuthorizationPolicy>

一个类型为 IList<T>IAuthorizationPolicy,它包含授权策略集。

返回

一个 AuthorizationContext,它包含对所有指定授权策略进行评估的结果。

注解

CreateDefaultAuthorizationContext 方法通常仅供基础结构使用。

适用于