CertificateRequestProperties.KeyAlgorithmName 属性     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置公钥算法。
public:
 property Platform::String ^ KeyAlgorithmName { Platform::String ^ get(); void set(Platform::String ^ value); };winrt::hstring KeyAlgorithmName();
void KeyAlgorithmName(winrt::hstring value);public string KeyAlgorithmName { get; set; }var string = certificateRequestProperties.keyAlgorithmName;
certificateRequestProperties.keyAlgorithmName = string;Public Property KeyAlgorithmName As String属性值
算法名称。
示例
public String GetSetPublicKeyAlgorithm(String strAlgNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();
    // The default value is RSA.
    String strDefaultAlgName = reqProperties.KeyAlgorithmName;
    // If the input option does not equal the default option, reset the property value.
    if (strAlgNameIn != strDefaultAlgName)
    {
        reqProperties.KeyAlgorithmName = strAlgNameIn;
    }
    // Return the algorithm name.
    return reqProperties.KeyAlgorithmName;
}
注解
默认值为“RSA”。 可以使用 KeyAlgorithmNames 类上的属性指定无错误的名称,或将此属性检索到的名称与已知字符串进行比较。