共用方式為


AsymmetricAlgorithm.KeyExchangeAlgorithm 屬性

定義

在衍生類別中覆寫時,取得金鑰交換演算法的名稱。 否則,擲回 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

適用於

另請參閱