IX509PrivateKey::get_ContainerNamePrefix method (certenroll.h)

The ContainerNamePrefix property specifies or retrieves a prefix added to the name of the key container.

This property is read/write.

Syntax

HRESULT get_ContainerNamePrefix(
  BSTR *pValue
);

Parameters

pValue

Return value

None

Remarks

A prefix can contain any string limited to the maximum length of the key container name and to legal container name characters. For example, if you do not call the ContainerName property to specify a key container name, one is automatically created when the Create method is called, and the prefix to the container name will be the string "lp". For another example, if you are creating a test harness and want to differentiate key containers by the programs that generated them, you can use the name of the executable as the prefix.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

IX509PrivateKey