AuthorizationPolicy.Combine 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Combine(AuthorizationPolicy[]) |
將指定的 AuthorizationPolicy 結合成單一原則。 |
Combine(IEnumerable<AuthorizationPolicy>) |
將指定的 AuthorizationPolicy 結合成單一原則。 |
Combine(AuthorizationPolicy[])
將指定的 AuthorizationPolicy 結合成單一原則。
public:
static Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ Combine(... cli::array <Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ policies);
public static Microsoft.AspNetCore.Authorization.AuthorizationPolicy Combine (params Microsoft.AspNetCore.Authorization.AuthorizationPolicy[] policies);
static member Combine : Microsoft.AspNetCore.Authorization.AuthorizationPolicy[] -> Microsoft.AspNetCore.Authorization.AuthorizationPolicy
Public Shared Function Combine (ParamArray policies As AuthorizationPolicy()) As AuthorizationPolicy
參數
- policies
- AuthorizationPolicy[]
要合併的授權原則。
傳回
新的 AuthorizationPolicy ,表示指定 policies
之 的組合。
適用於
Combine(IEnumerable<AuthorizationPolicy>)
將指定的 AuthorizationPolicy 結合成單一原則。
public:
static Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ Combine(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^> ^ policies);
public static Microsoft.AspNetCore.Authorization.AuthorizationPolicy Combine (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> policies);
static member Combine : seq<Microsoft.AspNetCore.Authorization.AuthorizationPolicy> -> Microsoft.AspNetCore.Authorization.AuthorizationPolicy
Public Shared Function Combine (policies As IEnumerable(Of AuthorizationPolicy)) As AuthorizationPolicy
參數
- policies
- IEnumerable<AuthorizationPolicy>
要合併的授權原則。
傳回
新的 AuthorizationPolicy ,表示指定 policies
之 的組合。