SearchResult.GetDirectoryEntry Method ()
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
[<EnvironmentPermissionAttribute(SecurityAction.Assert, Unrestricted = true)>] [<SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)>] member GetDirectoryEntry : unit -> DirectoryEntry
The following example is an excerpt of the example in SearchResult. The original example creates a new DirectoryEntry object with the desired path and uses the FindOne method to initiate the search. After performing the search, the example uses the method to retrieve the live directory entry that is identified in the search results.
Available since 1.1