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 是針對可以建立金鑰之集合中的第一個金鑰識別碼子句。

適用於