AsymmetricAlgorithm.KeyExchangeAlgorithm Property


When overridden in a derived class, gets the name of the key exchange algorithm. Otherwise, throws an NotImplementedException.

 abstract property System::String ^ KeyExchangeAlgorithm { System::String ^ get(); };
public abstract string KeyExchangeAlgorithm { get; }
member this.KeyExchangeAlgorithm : string
Public MustOverride ReadOnly Property KeyExchangeAlgorithm As String

Property Value

The name of the key exchange algorithm.


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.

    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
        Return "RSA-PKCS1-KeyEx"
    End Get
End Property

Applies to

See also