ADObjectId.GetBytes method
Returns a serialized representation of the Active Directory object identity encoded in Unicode.
Namespace: Microsoft.Exchange.Data.Directory
Assembly: Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)
Syntax
'Declaration
Public Overrides Function GetBytes As Byte()
'Usage
Dim instance As ADObjectId
Dim returnValue As Byte()
returnValue = instance.GetBytes()
public override byte[] GetBytes()
Return value
Type: []
The number of bytes required to serialize the Active Directory object identity in Unicode.
Remarks
Calling the GetBytes() method is equivalent to calling the GetBytes(Encoding) method with the encoding parameter set to Encoding.Unicode.