IX509PrivateKey::DefaultContainer property

The DefaultContainer property retrieves a Boolean value that specifies whether the private key represents the default key container.

This property is read-only.

Syntax


HRESULT get_DefaultContainer(
  [out] VARIANT_BOOL *pValue
);

Property value

Pointer to a VARIANT_BOOL variable. A value of VARIANT_TRUE indicates that the key represents the default key container.

Error codes

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

Key containers are identified by name. The name can be specified by the client, or it can be a default value supported by the CSP or KSP. For example, some CSPs use the logon name of the current user as the default container name.

This property value is set when the Open or Create methods are called.

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: