ActiveDirectorySchema.GetCurrentSchema Method ()
.NET Framework (current version)
Note |
|---|
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.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Return Value
Type: System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaAn 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
Available since 2.0
ActiveDirectorySchema
System.DirectoryServices.ActiveDirectory Namespace
Accessing the Schema
Show:
