SecurityTokenRequirement.KeyType 屬性

定義

取得或設定與安全性權杖相關聯金鑰的型別 (非對稱或對稱)。

public:
 property System::IdentityModel::Tokens::SecurityKeyType KeyType { System::IdentityModel::Tokens::SecurityKeyType get(); void set(System::IdentityModel::Tokens::SecurityKeyType value); };
public System.IdentityModel.Tokens.SecurityKeyType KeyType { get; set; }
member this.KeyType : System.IdentityModel.Tokens.SecurityKeyType with get, set
Public Property KeyType As SecurityKeyType

屬性值

SecurityKeyType,其中指定與安全性權杖相關聯之金鑰的類型 (非對稱或對稱)。 預設值是 SymmetricKey

備註

透過取得 KeyType 屬性也可以存取 Properties 屬性的值,這時是屬性值的集合。 KeyType 屬性的值會儲存在對應於 KeyTypeProperty 屬性值的索引上。

適用於

另請參閱