SecurityKeyIdentifier.CreateKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為其中一個金鑰識別碼子句建立金鑰。
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 是針對可以建立金鑰之集合中的第一個金鑰識別碼子句。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應