CertificateRequestProperties.KeyAlgorithmName プロパティ

定義

公開キー アルゴリズムを取得または設定します。

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

プロパティ値

String

Platform::String

winrt::hstring

アルゴリズム名。

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 クラスのプロパティを使用して、エラーのない名前を指定したり、このプロパティによって取得された名前を既知の文字列と比較したりできます。

適用対象

こちらもご覧ください