Compartir a través de


ADObjectId.GetByteCount Method

Returns the number of bytes required to serialize the Active Directory object.

Namespace:  Microsoft.Exchange.Data.Directory
Assembly:  Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)

Syntax

'Declaration
Public Function GetByteCount ( _
    encoding As Encoding _
) As Integer
'Usage
Dim instance As ADObjectId
Dim encoding As Encoding
Dim returnValue As Integer

returnValue = instance.GetByteCount(encoding)
public int GetByteCount(
    Encoding encoding
)

Parameters

  • encoding
    Type: System.Text.Encoding
    The character encoding to use when serializing the Active Directory object.

Return Value

Type: System.Int32
The number of bytes required.