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

Комментарии

По умолчанию закрытый ключ не экспортируется.

Применяется к