AsymmetricAlgorithm.KeyExchangeAlgorithm Propriedade

Definição

Quando substituída em uma classe derivada, obtém o nome do algoritmo de troca de chaves. Caso contrário, gerará um 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 da propriedade

String

O nome do algoritmo de troca de chaves.

Exemplos

O exemplo de código a seguir demonstra como substituir a KeyExchangeAlgorithm propriedade para retornar o nome do algoritmo de troca de chaves. Este exemplo de código faz parte de um exemplo maior fornecido para a AsymmetricAlgorithm classe.

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

Aplica-se a

Confira também