CertificateRequestProperties.Exportable 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指定是否可以导出为请求创建的私钥。
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;
}
注解
默认情况下,私钥不可导出。