ICertEncodeStringArray::Decode method (certenc.h)

The Decode method decodes an Abstract Syntax Notation One (ASN.1)-encoded string array and stores the resulting array of strings in the CertEncodeStringArray object.

Syntax

HRESULT Decode(
  const BSTR strBinary
);

Parameters

strBinary

An ASN.1-encoded string array.

Return value

VB

If the method succeeds, the method returns S_OK.

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

Remarks

This method will place the decoded contents of strBinary into the object's array of strings. If the object's array already contains strings, this existing content will be freed, and the array will be loaded with the decoded values.

Examples

For an example that uses the Decode method, see the ICertEncodeStringArray::Encode method.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certenc.h (include Certsrv.h)
Library Certidl.lib
DLL Certenc.dll

See also

ICertEncodeStringArray

ICertEncodeStringArray::Encode