共用方式為


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 方法通常僅由基礎結構使用。

適用於