This topic has not yet been rated - Rate this topic

BerConverter.Decode Method

The Decode method decodes a binary representation of the data, using BER, to retrieve structured data.

Namespace:  System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
public static Object[] Decode(
	string format,
	byte[] value
)

Parameters

format
Type: System.String
The format string.
value
Type: System.Byte[]
An array of BER data.

Return Value

Type: System.Object[]
The decoded data.
Exception Condition
ArgumentNullException

The format parameter contains a null reference (Nothing in Visual Basic).

ArgumentException

The format parameter contains an undefined character.

BerConversionException

The underlying decoding fails. The decoding rules include the following.

CodeCorresponding Result
'{' '}' '[' ']' 'n' 'x'No corresponding result
'i' 'e'int
'b'bool
'a'string
'O'byte[]
'B'byte[] containing bit strings
'v'string[]
'V'byte[][]

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ