語言

PublicKey.GetRSAPublicKey 方法

定義

取得 RSA 公鑰,或者 null 如果金鑰不是 RSA 金鑰。

public:
 System::Security::Cryptography::RSA ^ GetRSAPublicKey();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Security.Cryptography.RSA? GetRSAPublicKey();
public System.Security.Cryptography.RSA? GetRSAPublicKey();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.GetRSAPublicKey : unit -> System.Security.Cryptography.RSA
member this.GetRSAPublicKey : unit -> System.Security.Cryptography.RSA
Public Function GetRSAPublicKey () As RSA

傳回

RSA

公鑰,或者 null 如果金鑰不是 RSA 金鑰。

屬性

例外狀況

金鑰內容損壞或無法成功讀取。

適用於