语言

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 引用(Nothing 在 Visual Basic 中)。

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

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

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

适用于