ActiveDirectorySchema Class

The ActiveDirectorySchema class represents the schema partition for a particular domain.

System.Object
  System.DirectoryServices.ActiveDirectory.ActiveDirectoryPartition
    System.DirectoryServices.ActiveDirectory.ActiveDirectorySchema

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

[<DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)>]
type ActiveDirectorySchema =  
    class 
        inherit ActiveDirectoryPartition 
    end

The ActiveDirectorySchema type exposes the following members.

  NameDescription
Public propertyNameGets the partition name. (Inherited from ActiveDirectoryPartition.)
Public propertySchemaRoleOwnerGets the schema master role owner.
Top

  NameDescription
Public methodDispose()Releases all managed and unmanaged resources that are held by the object. (Inherited from ActiveDirectoryPartition.)
Protected methodDispose(Boolean)Releases the managed resources that are used by the ActiveDirectorySchema object and, optionally, releases unmanaged resources. (Overrides ActiveDirectoryPartition.Dispose(Boolean).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindAllClasses()Retrieves all Active Directory Domain Services classes in the schema.
Public methodFindAllClasses(SchemaClassType)Retrieves all Active Directory Domain Services classes in the schema that are of the specified type.
Public methodFindAllDefunctClassesRetrieves all of the defunct Active Directory Domain Services classes in the schema.
Public methodFindAllDefunctPropertiesRetrieves all of the defunct Active Directory Domain Services properties in the schema.
Public methodFindAllProperties()Retrieves all of the Active Directory Domain Services properties in the schema.
Public methodFindAllProperties(PropertyTypes)Retrieves all of the Active Directory Domain Services properties in the schema of the specified type.
Public methodFindClassRetrieves the class with the specified name.
Public methodFindDefunctClassRetrieves the defunct class that has the specified common name.
Public methodFindDefunctPropertyRetrieves the defunct property that has the specified common name.
Public methodFindPropertyRetrieves the property with the specified name.
Public methodStatic memberGetCurrentSchemaGets the schema object for the forest that the currently logged-on user is a member of.
Public methodGetDirectoryEntryRetrieves a DirectoryEntry object that represents the directory partition. (Overrides ActiveDirectoryPartition.GetDirectoryEntry().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodStatic memberGetSchemaRetrieves the schema object for the specified context.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRefreshSchemaRefreshes the schema cache on the client computer.
Public methodToStringRetrieves a string representation of the current directory partition. (Inherited from ActiveDirectoryPartition.)
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft