CertificateRequestProperties.Exportable CertificateRequestProperties.Exportable CertificateRequestProperties.Exportable CertificateRequestProperties.Exportable CertificateRequestProperties.Exportable Property

Definition

Gets or sets a value that specifies whether the private key created for the request can be exported.

public : ExportOption Exportable { get; set; }
ExportOption Exportable();

void Exportable(ExportOption exportable);
public ExportOption Exportable { get; set; }
Public ReadWrite Property Exportable As ExportOption
var exportOption = certificateRequestProperties.exportable;
certificateRequestProperties.exportable = exportOption;

Property Value

Specifies whether the key can be exported.

Examples

public ExportOption GetSetExportable(ExportOption inputOption)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();
    
    // The default value is ExportOption.NotExportable
    ExportOption defaultOption = reqProperties.Exportable;

    // If the input option does not equal the default option, reset the property value.
    if (inputOption != defaultOption)
    {
        reqProperties.Exportable = inputOption;
    }

    // Return the option value.
    return reqProperties.Exportable;
}

Remarks

By default, the private key is not exportable.