AsymmetricAlgorithm.KeyExchangeAlgorithm 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在衍生類別中覆寫時,取得金鑰交換演算法的名稱。 否則,擲回 NotImplementedException。
public:
virtual property System::String ^ KeyExchangeAlgorithm { System::String ^ get(); };
public:
abstract property System::String ^ KeyExchangeAlgorithm { System::String ^ get(); };
public virtual string? KeyExchangeAlgorithm { get; }
public virtual string KeyExchangeAlgorithm { get; }
public abstract string KeyExchangeAlgorithm { get; }
member this.KeyExchangeAlgorithm : string
Public Overridable ReadOnly Property KeyExchangeAlgorithm As String
Public MustOverride ReadOnly Property KeyExchangeAlgorithm As String
屬性值
金鑰交換演算法的名稱。
範例
下列程式代碼範例示範如何覆寫 KeyExchangeAlgorithm 屬性,以傳回密鑰交換演演算法的名稱。 此程式代碼範例是針對 類別提供的較大範例的 AsymmetricAlgorithm 一部分。
public:
property String^ KeyExchangeAlgorithm
{
virtual String^ get() override
{
return "RSA-PKCS1-KeyEx";
}
}
public override string KeyExchangeAlgorithm
{
get {return "RSA-PKCS1-KeyEx";}
}
Public Overrides ReadOnly Property KeyExchangeAlgorithm() As String
Get
Return "RSA-PKCS1-KeyEx"
End Get
End Property