แก้ไข

แชร์ผ่าน


AsymmetricAlgorithm.KeyExchangeAlgorithm Property

Definition

When overridden in a derived class, gets the name of the key exchange algorithm. Otherwise, throws an 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

Property Value

The name of the key exchange algorithm.

Examples

The following code example demonstrates how to override the KeyExchangeAlgorithm property to return the name for the key exchange algorithm. This code example is part of a larger example provided for the AsymmetricAlgorithm class.

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

Applies to

See also