ADObjectId.GetBytes method (Encoding)
Returns a serialized representation of the Active Directory object identity in the specified character encoding.
Namespace: Microsoft.Exchange.Data.Directory
Assembly: Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)
Syntax
'Declaration
Public Function GetBytes ( _
encoding As Encoding _
) As Byte()
'Usage
Dim instance As ADObjectId
Dim encoding As Encoding
Dim returnValue As Byte()
returnValue = instance.GetBytes(encoding)
public byte[] GetBytes(
Encoding encoding
)
Parameters
encoding
Type: System.Text.EncodingThe character encoding to use when serializing the Active Directory object identifier.
Return value
Type: []
The number of bytes required to serialize the Active Directory object identity in the specified character encoding.