共用方式為


SecurityTokenSpecification 建構函式

定義

使用指定的權杖和權杖原則,初始化 SecurityTokenSpecification 類別的新執行個體。

public:
 SecurityTokenSpecification(System::IdentityModel::Tokens::SecurityToken ^ token, System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ tokenPolicies);
public SecurityTokenSpecification (System.IdentityModel.Tokens.SecurityToken token, System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> tokenPolicies);
new System.ServiceModel.Security.SecurityTokenSpecification : System.IdentityModel.Tokens.SecurityToken * System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> -> System.ServiceModel.Security.SecurityTokenSpecification
Public Sub New (token As SecurityToken, tokenPolicies As ReadOnlyCollection(Of IAuthorizationPolicy))

參數

token
SecurityToken

安全性權杖。

tokenPolicies
ReadOnlyCollection<IAuthorizationPolicy>

安全性權杖原則的集合。

例外狀況

tokenPoliciesnull

適用於