Freigeben über


CertificateRequestProperties.KeyProtectionLevel Eigenschaft

Definition

Ruft die Ebene des Starken Schlüsselschutzes ab oder legt sie fest.

public:
 property KeyProtectionLevel KeyProtectionLevel { KeyProtectionLevel get(); void set(KeyProtectionLevel value); };
KeyProtectionLevel KeyProtectionLevel();

void KeyProtectionLevel(KeyProtectionLevel value);
public KeyProtectionLevel KeyProtectionLevel { get; set; }
var keyProtectionLevel = certificateRequestProperties.keyProtectionLevel;
certificateRequestProperties.keyProtectionLevel = keyProtectionLevel;
Public Property KeyProtectionLevel As KeyProtectionLevel

Eigenschaftswert

Starke Schlüsselschutzebene.

Beispiele

public KeyProtectionLevel GetSetKeyProtectionLevel(KeyProtectionLevel levelIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // The default value is NoConsent.
    KeyProtectionLevel defaultLevel = reqProperties.KeyProtectionLevel;

    // If the input option does not equal the default option, reset the property value.
    if (levelIn != defaultLevel)
    {
        reqProperties.KeyProtectionLevel = levelIn;
    }

    // return the key protection level.
    return reqProperties.KeyProtectionLevel;
}

Hinweise

Der KeyProtectionLevel-Standardwert ist NoConsent. Standardmäßig ist daher kein starker Schlüsselschutz angegeben.

Gilt für: