Expand Minimize
This topic has not yet been rated - Rate this topic

System.DirectoryServices.ActiveDirectory Namespace

The System.DirectoryServices.ActiveDirectory namespace provides a high level abstraction object model that builds around Microsoft Active Directory services tasks. The Active Directory service concepts such as forest, domain, site, subnet, partition, and schema are part of the object model.

The System.DirectoryServices.ActiveDirectory namespace is used to automate Active Directory management tasks. System.DirectoryServices.ActiveDirectory is not used to access data that resides within Active Directory or any other directory service. The System.DirectoryServices namespace should be used for this purpose.

The System.DirectoryServices.ActiveDirectory namespace is intended for use by application developers who are familiar with .NET Framework programming using Visual Basic .NET or C#. Knowledge of directory services programming is also helpful.

System.DirectoryServices.ActiveDirectory is part of Microsoft Visual Studio 2005 and is supported on any operating system that Microsoft Visual Studio 2005 is compatible with.

Many of the classes, methods, and properties in the System.DirectoryServices.ActiveDirectory namespace use the LinkDemand code access security option. This means that the code access security demand only occurs during just-in- time compilation and that the demand is performed only on the calling assembly and not up the entire call stack. Because of this, callers should not pass objects created from this namespace at runtime to untrusted code.

  Class Description
Public class ActiveDirectoryInterSiteTransport The ActiveDirectoryInterSiteTransport class represents an inter-site transport object.
Public class ActiveDirectoryObjectExistsException The ActiveDirectoryObjectExistsException class exception is thrown when an Active Directory Domain Services object is created and that object already exists in the underlying directory store.
Public class ActiveDirectoryObjectNotFoundException The ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.
Public class ActiveDirectoryOperationException The ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.
Public class ActiveDirectoryPartition The ActiveDirectoryPartition class is an abstract class that represents a directory partition in a domain.
Public class ActiveDirectoryReplicationMetadata The ActiveDirectoryReplicationMetadata class contains replication information for a set of Active Directory Domain Services attributes.
Public class ActiveDirectoryRoleCollection The ActiveDirectoryRoleCollection class is a read-only collection that contains ActiveDirectoryRole objects.
Public class ActiveDirectorySchedule The ActiveDirectorySchedule class represents the weekly schedule for an Active Directory Domain Services replication.
Public class ActiveDirectorySchema The ActiveDirectorySchema class represents the schema partition for a particular domain.
Public class ActiveDirectorySchemaClass The ActiveDirectorySchemaClass class represents a schema class definition that is contained in the schema partition.
Public class ActiveDirectorySchemaClassCollection The ActiveDirectorySchemaClassCollection class is a read/write collection that contains ActiveDirectorySchemaClass objects.
Public class ActiveDirectorySchemaProperty The ActiveDirectorySchemaProperty class represents a schema property definition that is contained in the schema partition.
Public class ActiveDirectorySchemaPropertyCollection The ActiveDirectorySchemaPropertyCollection class is a read/write collection that contains ActiveDirectorySchemaProperty objects.
Public class ActiveDirectoryServerDownException The ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.
Public class ActiveDirectorySite The ActiveDirectorySite class defines a set of domain controllers that are well-connected in terms of speed and cost. A site object consists of a set of one or more IP subnets.
Public class ActiveDirectorySiteCollection The ActiveDirectorySiteCollection class is a read/write collection that contains ActiveDirectorySite objects.
Public class ActiveDirectorySiteLink The ActiveDirectorySiteLink class represents a set of two or more sites that can be scheduled, for replication, to communicate at uniform cost and through a particular transport.
Public class ActiveDirectorySiteLinkBridge The ActiveDirectorySiteLinkBridge class represents a set of site links that communicate through a transport.
Public class ActiveDirectorySiteLinkCollection The ActiveDirectorySiteLinkCollection class is a read/write collection that contains ActiveDirectorySiteLink objects.
Public class ActiveDirectorySubnet The ActiveDirectorySubnet class represents a subnet in a Forest.
Public class ActiveDirectorySubnetCollection The ActiveDirectorySubnetCollection class is a read/write collection that contains ActiveDirectorySubnet objects.
Public class AdamInstance The AdamInstance class represents an AD LDS instance server.
Public class AdamInstanceCollection The AdamInstanceCollection class is a read-only collection that contains AdamInstance objects.
Public class AdamRoleCollection The AdamRoleCollection class is a read-only collection that contains AdamRole items.
Public class ApplicationPartition The ApplicationPartition class represents an application partition for a particular domain.
Public class ApplicationPartitionCollection The ApplicationPartitionCollection class is a read-only collection that contains ApplicationPartition objects.
Public class AttributeMetadata The AttributeMetadata class is used to contain replication metadata for an Active Directory Domain Services attribute.
Public class AttributeMetadataCollection A read-only collection that contains ApplicationPartition objects.
Public class ConfigurationSet The ConfigurationSet class represents a configuration set for one or more AD LDS instances.
Public class DirectoryContext The DirectoryContext class identifies a specific directory and the credentials that are used to access the directory.
Public class DirectoryServer The DirectoryServer class is an abstract class that represents an Active Directory Domain Services server or AD LDS instance.
Public class DirectoryServerCollection The DirectoryServerCollection class is a read/write collection that contains DirectoryServer objects.
Public class Domain The Domain class represents an Active Directory domain.
Public class DomainCollection The DomainCollection class is a read-only collection that contains Domain objects.
Public class DomainController The DomainController class represents a domain controller in an Active Directory domain.
Public class DomainControllerCollection The DomainControllerCollection class is a read-only collection that contains DomainController objects.
Public class Forest The Forest class represents an Active Directory Domain Services forest.
Public class ForestTrustCollisionException The ForestTrustCollisionException class exception is thrown when a trust collision occurs during a trust relationship management request.
Public class ForestTrustDomainInfoCollection The ForestTrustDomainInfoCollection class is a read-only collection that contains ForestTrustDomainInformation objects.
Public class ForestTrustDomainInformation The ForestTrustDomainInformation class contains information about a Domain object and is contained in a ForestTrustDomainInfoCollection object.
Public class ForestTrustRelationshipCollision Represents a collision record resulting from a collision between forest trust records.
Public class ForestTrustRelationshipCollisionCollection The ForestTrustRelationshipCollisionCollection class is a read-only collection that contains ForestTrustRelationshipCollision objects.
Public class ForestTrustRelationshipInformation The ForestTrustRelationshipInformation class contains information about a trust relationship between two Forest objects.
Public class GlobalCatalog The GlobalCatalog class represents a global catalog server. A global catalog server is a domain controller that hosts a replica of the global catalog.
Public class GlobalCatalogCollection The GlobalCatalogCollection class is a read-only collection that contains GlobalCatalog objects.
Public class ReadOnlyActiveDirectorySchemaClassCollection The ReadOnlyActiveDirectorySchemaClassCollection class is a read-only collection that contains ActiveDirectorySchemaClass objects.
Public class ReadOnlyActiveDirectorySchemaPropertyCollection The ReadOnlyActiveDirectorySchemaPropertyCollection class is a read-only collection that contains ActiveDirectorySchemaProperty objects.
Public class ReadOnlyDirectoryServerCollection The ReadOnlyDirectoryServerCollection class is a read-only collection that contains DirectoryServer objects.
Public class ReadOnlySiteCollection The ReadOnlySiteCollection class is a read-only collection of ActiveDirectorySite objects.
Public class ReadOnlySiteLinkBridgeCollection The ReadOnlySiteLinkBridgeCollection class is a read-only collection that contains ActiveDirectorySiteLinkBridge objects.
Public class ReadOnlySiteLinkCollection The ReadOnlySiteLinkCollection class is a read-only collection that contains ActiveDirectorySiteLink objects.
Public class ReadOnlyStringCollection The ReadOnlyStringCollection class is a read-only collection that contains String objects.
Public class ReplicationConnection The ReplicationConnection class represents a replication connection.
Public class ReplicationConnectionCollection The ReplicationConnectionCollection class is a read-only collection of ReplicationConnection objects.
Public class ReplicationCursor The ReplicationCursor class represents a replication operation occurrence.
Public class ReplicationCursorCollection The ReplicationCursorCollection class is a read-only collection that contains ReplicationCursor objects.
Public class ReplicationFailure Contains information about a failed replication attempt.
Public class ReplicationFailureCollection The ReplicationFailureCollection class is a read-only collection that contains ReplicationFailure objects.
Public class ReplicationNeighbor The ReplicationNeighbor class contains information about a replication neighbor of an AdamInstance or DomainController object.
Public class ReplicationNeighborCollection The ReplicationNeighborCollection class is a read-only collection that contains ReplicationNeighbor objects.
Public class ReplicationOperation The ReplicationOperation class represents an Active Directory Domain Services replication operation.
Public class ReplicationOperationCollection The ReplicationOperationCollection class is a read-only collection that contains ReplicationOperation objects.
Public class ReplicationOperationInformation The ReplicationOperationInformation class contains information about an Active Directory Domain Services replication operation.
Public class SyncFromAllServersErrorInformation Contains information about a SyncFromAllServersOperationException exception.
Public class SyncFromAllServersOperationException The SyncFromAllServersOperationException exception is thrown when the request to synchronize from all servers fails.
Public class TopLevelName Contains forest trust account information about a top-level domain in a Forest.
Public class TopLevelNameCollection The TopLevelNameCollection class is a read-only collection that contains TopLevelName objects.
Public class TrustRelationshipInformation The TrustRelationshipInformation class contains information for a trust relationship between a pair of Domain or Forest objects.
Public class TrustRelationshipInformationCollection The TrustRelationshipInformationCollection class contains a collection of TrustRelationshipInformation objects.
  Delegate Description
Public delegate SyncUpdateCallback Receives event notifications during a replica synchronization.
  Enumeration Description
Public enumeration ActiveDirectoryRole Identifies specific roles within a domain.
Public enumeration ActiveDirectorySiteOptions Specifies the bit identifiers for the ActiveDirectorySite object site options.
Public enumeration ActiveDirectorySyntax Specifies the data representation (syntax) type of a ActiveDirectorySchemaProperty object.
Public enumeration ActiveDirectoryTransportType Identifies the transport type of a replication connection.
Public enumeration AdamRole Indicates specific roles of a AdamInstance object.
Public enumeration DirectoryContextType Specifies the context type for an DirectoryContext object.
Public enumeration DomainCollisionOptions Specifies additional information about a forest trust collision when the CollisionType property value is Domain.
Public enumeration DomainMode Indicates the mode that a domain is operating in.
Public enumeration ForestMode Indicates the mode in which a Forest is operating.
Public enumeration ForestTrustCollisionType Specifies the collision type of a ForestTrustRelationshipCollision object.
Public enumeration ForestTrustDomainStatus Indicates the status of a forest trust relationship.
Public enumeration HourOfDay Indicates the hour of the day.
Public enumeration LocatorOptions Specifies search flags for finding a domain controller in a domain.
Public enumeration MinuteOfHour Indicates the 15-minute intervals within an hour.
Public enumeration NotificationStatus Represents the notification status of a replication connection.
Public enumeration PropertyTypes Specifies the property types to select when calling the ActiveDirectorySchema.FindAllProperties(PropertyTypes) method.
Public enumeration ReplicationNeighbor.ReplicationNeighborOptions Specifies the options for a ReplicationNeighbor object.
Public enumeration ReplicationOperationType Indicates a specific type of replication operation.
Public enumeration ReplicationSecurityLevel Specifies the Active Directory Lightweight Directory (AD LDS) Services replication authentication mode.
Public enumeration ReplicationSpan Determines the span of a replication connection.
Public enumeration SchemaClassType Specifies the class type of an ActiveDirectorySchemaClass object.
Public enumeration SyncFromAllServersErrorCategory Contains information about a SyncFromAllServersOperationException.
Public enumeration SyncFromAllServersEvent Used in the SyncUpdateCallback delegate to specify the type of synchronization event.
Public enumeration SyncFromAllServersOptions Specifies additional options when performing a synchronization.
Public enumeration TopLevelNameCollisionOptions Specifies additional information about a forest trust collision when the CollisionType property value is TopLevelName.
Public enumeration TopLevelNameStatus Indicates the forest trust account status of a top-level domain in a forest.
Public enumeration TrustDirection Indicates the direction of a trust.
Public enumeration TrustType Indicates the type of a TrustRelationshipInformation object.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.