CertificateRequestProperties.KeyAlgorithmName CertificateRequestProperties.KeyAlgorithmName CertificateRequestProperties.KeyAlgorithmName CertificateRequestProperties.KeyAlgorithmName CertificateRequestProperties.KeyAlgorithmName Property

Definition

Gets or sets the public key algorithm.

public : Platform::String KeyAlgorithmName { get; set; }
winrt::hstring KeyAlgorithmName();

void KeyAlgorithmName(winrt::hstring keyalgorithmname);
public string KeyAlgorithmName { get; set; }
Public ReadWrite Property KeyAlgorithmName As string
var string = certificateRequestProperties.keyAlgorithmName;
certificateRequestProperties.keyAlgorithmName = string;

Property Value

string string string

Algorithm name.

Examples

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;
}

Remarks

The default value is "RSA". You can use properties on the KeyAlgorithmNames class to specify error-free names or to compare the name retrieved by this property with a known string.

See also