ActiveDirectorySchema.GetCurrentSchema Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
ActiveDirectoryObjectNotFoundException

A connection to the local domain cannot be made.

.NET Framework
Available since 2.0
Return to top
Show: