ActiveDirectorySchemaClass Constructor
Initializes a new instance of the ActiveDirectorySchemaClass object.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Parameters
- context
- Type: System.DirectoryServices.ActiveDirectory.DirectoryContext
An DirectoryContext object that specifies the context for this ActiveDirectorySchemaClass object.
- ldapDisplayName
- Type: System.String
A String that represents the LDAP display name for this ActiveDirectorySchemaClass object.
| Exception | Condition |
|---|---|
| ArgumentException | context does not refer to a valid Forest or ConfigurationSet, ldapDisplayName is an empty string. |
| ArgumentNullException | context or ldapDisplayName is null. |
The Save method must be called to commit the ActiveDirectorySchemaClass object that was created to the underlying directory store.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.