AsymmetricAlgorithm.KeyExchangeAlgorithm Propiedad

Definición

Cuando se invalida en una clase derivada, obtiene el nombre del algoritmo de intercambio de claves. En caso contrario, produce una excepción 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

Valor de propiedad

String

Nombre del algoritmo de intercambio de claves.

Ejemplos

En el ejemplo de código siguiente se muestra cómo invalidar la KeyExchangeAlgorithm propiedad para devolver el nombre del algoritmo de intercambio de claves. Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la AsymmetricAlgorithm clase .

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

Se aplica a

Consulte también