Windows Dev Center

IX509PrivateKey::UniqueContainerName property

The UniqueContainerName property retrieves a unique name for the key container.

This property is read-only.

Syntax


HRESULT get_UniqueContainerName(
  [out] BSTR *pValue
);

Property value

Pointer to a BSTR variable that contains the name.

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/valueMeaning
CERTSRV_E_PROPERTY_EMPTY

The property value could not be found.

Remarks

This property retrieves an alternate name that can be used when accessing a key when you believe that the ContainerName property value is not unique enough to provide adequate identification. Typically the key container creates the name. For example, the Cryptography API: Next Generation (CNG) key storage provider (KSP) returns the name of the encrypted file that contains the key.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

IX509PrivateKey

 

 

Community Additions

ADD
Show:
© 2015 Microsoft