ADObjectId.AncestorDN method

Returns the ancestor of the object at the specified location in the ancestry tree.

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

Syntax

'Declaration
Public Function AncestorDN ( _
    generation As Integer _
) As ADObjectId
'Usage
Dim instance As ADObjectId
Dim generation As Integer
Dim returnValue As ADObjectId

returnValue = instance.AncestorDN(generation)
public ADObjectId AncestorDN(
    int generation
)

Parameters

  • generation
    Type: System.Int32

    The generation of the ancestor to return.

Return value

Type: Microsoft.Exchange.Data.Directory.ADObjectId
The Active Directory object identifier for the specified ancestor.

See also

Reference

ADObjectId class

ADObjectId members

Microsoft.Exchange.Data.Directory namespace