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

适用于

另请参阅