CertificateRequestProperties.Exportable 屬性

定義

取得或設定值,這個值會指定是否可以匯出為要求建立的私密金鑰。

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

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

屬性值

指定是否可以匯出金鑰。

範例

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

備註

根據預設,私密金鑰不可匯出。

適用於