Condividi tramite


CertificateRequestProperties.KeyAlgorithmName Proprietà

Definizione

Ottiene o imposta l'algoritmo di chiave pubblica.

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

Valore della proprietà

String

Platform::String

winrt::hstring

Nome algoritmo.

Esempio

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

Commenti

Il valore predefinito è "RSA". È possibile usare le proprietà nella classe KeyAlgorithmNames per specificare nomi senza errori o per confrontare il nome recuperato da questa proprietà con una stringa nota.

Si applica a

Vedi anche