IX509PrivateKey::ExportPolicy property
Applies to: desktop apps only
The ExportPolicy property specifies or retrieves export constraints for a private key. This property is web enabled for both input and output.
This property is read/write.
Syntax
HRESULT put_ExportPolicy( [in] X509PrivateKeyExportFlags Value ); HRESULT get_ExportPolicy( [out] X509PrivateKeyExportFlags *pValue );
Property value
An X509PrivateKeyExportFlags enumeration value that specifies the export policy for a private key. The policy is enforced by the provider and can be a bitwise OR of the following flags.
Error codes
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.
| Name | Meaning |
|---|---|
|
The key is open and the property value cannot be set. |
Requirements
|
Minimum supported client | Windows Vista |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012