Share via


BerConverter.Decode(String, Byte[]) 方法

定义

Decode(String, Byte[]) 方法使用 BER 对数据的二进制表示形式进行解码,以检索结构化数据。

public:
 static cli::array <System::Object ^> ^ Decode(System::String ^ format, cli::array <System::Byte> ^ value);
public static object[] Decode (string format, byte[] value);
static member Decode : string * byte[] -> obj[]
Public Shared Function Decode (format As String, value As Byte()) As Object()

参数

format
String

格式字符串。

value
Byte[]

BER 数据组成的数组。

返回

Object[]

已解码的数据。

例外

format 参数包含 null 引用(在 Visual Basic 中为 Nothing)。

format 参数包含未定义的字符。

基础解码失败。 解码规则包括以下内容。

代码 对应的结果
'{' '}' '[' ']' 'n' 'x' 无对应的结果
'i' 'e' int
'b' bool
“a” 字符串
'O' byte[]
'B' 包含位字符串的 byte[]
'v' string[]
'V' byte[][]

适用于