PublicKey.GetRSAPublicKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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
傳回
公鑰,或者 null 如果金鑰不是 RSA 金鑰。
- 屬性
例外狀況
金鑰內容損壞或無法成功讀取。