ActiveDirectorySchema.GetCurrentSchema Method ()


Gets the schema object for the forest that the currently logged-on user is a member of.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public static ActiveDirectorySchema GetCurrentSchema()

Return Value

Type: System.DirectoryServices.ActiveDirectory.ActiveDirectorySchema

An ActiveDirectorySchema object that represents the schema for the domain that the local computer is a member of.

Exception Condition

A connection to the local domain cannot be made.

.NET Framework
Available since 2.0
Return to top