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 클래스의 속성을 사용하여 오류 없는 이름을 지정하거나 이 속성에서 검색한 이름을 알려진 문자열과 비교할 수 있습니다.

적용 대상

추가 정보