語言

SecurityKeyIdentifier.CreateKey 方法

定義

為其中一個鍵識別子句建立一個鍵。

public:
 System::IdentityModel::Tokens::SecurityKey ^ CreateKey();
public System.IdentityModel.Tokens.SecurityKey CreateKey();
member this.CreateKey : unit -> System.IdentityModel.Tokens.SecurityKey
Public Function CreateKey () As SecurityKey

傳回

SecurityKey代表已建立的金鑰。

例外狀況

無法為任何金鑰識別子句建立金鑰。

備註

SecurityKey回傳的 是集合中第一個能建立鍵的金鑰識別子句。

適用於