AsymmetricAlgorithm.KeyExchangeAlgorithm 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当在派生类中重写时,请获取密钥交换算法的名称。 否则,将引发 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