ICertEncodeBitString::D ecode 方法 (certenc.h)

解码方法将抽象语法表示法 1 (ASN.1) 编码位字符串解码,并将生成的位字符串存储在此对象中。 然后,可以调用 ICertEncodeBitString::GetBitCountICertEncodeBitString::GetBitString 方法来检索位字符串及其大小。

语法

HRESULT Decode(
  [in] const BSTR strBinary
);

参数

[in] strBinary

ASN.1 编码的位字符串。

返回值

VB

如果方法成功,该方法将返回S_OK。

如果方法失败,它将返回一个 指示错误的 HRESULT 值。 有关常见错误代码的列表,请参阅 通用 HRESULT 值

注解

使用此方法解码编码的位字符串。

示例

有关调用 Decode 方法的示例,请参阅 ICertEncodeBitString::Encode 方法。

要求

要求
最低受支持的客户端 无受支持的版本
最低受支持的服务器 Windows Server 2003 [仅限桌面应用]
目标平台 Windows
标头 certenc.h (包括 Certsrv.h)
Library Certidl.lib
DLL Certenc.dll

另请参阅

ICertEncodeBitString

ICertEncodeBitString::Encode