System.DirectoryServices.ActiveDirectory
TOC
Collapse the table of content
Expand the table of content

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.

ClassDescription
System_CAPS_pubclassActiveDirectoryInterSiteTransport

The ActiveDirectoryInterSiteTransport class represents an inter-site transport object.

System_CAPS_pubclassActiveDirectoryObjectExistsException

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.

System_CAPS_pubclassActiveDirectoryObjectNotFoundException

The ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.

System_CAPS_pubclassActiveDirectoryOperationException

The ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.

System_CAPS_pubclassActiveDirectoryPartition

The ActiveDirectoryPartition class is an abstract class that represents a directory partition in a domain.

System_CAPS_pubclassActiveDirectoryReplicationMetadata

The ActiveDirectoryReplicationMetadata class contains replication information for a set of Active Directory Domain Services attributes.

System_CAPS_pubclassActiveDirectoryRoleCollection

The ActiveDirectoryRoleCollection class is a read-only collection that contains ActiveDirectoryRole objects.

System_CAPS_pubclassActiveDirectorySchedule

The ActiveDirectorySchedule class represents the weekly schedule for an Active Directory Domain Services replication.

System_CAPS_pubclassActiveDirectorySchema

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

System_CAPS_pubclassActiveDirectorySchemaClass

The ActiveDirectorySchemaClass class represents a schema class definition that is contained in the schema partition.

System_CAPS_pubclassActiveDirectorySchemaClassCollection

The ActiveDirectorySchemaClassCollection class is a read/write collection that contains ActiveDirectorySchemaClass objects.

System_CAPS_pubclassActiveDirectorySchemaProperty

The ActiveDirectorySchemaProperty class represents a schema property definition that is contained in the schema partition.

System_CAPS_pubclassActiveDirectorySchemaPropertyCollection

The ActiveDirectorySchemaPropertyCollection class is a read/write collection that contains ActiveDirectorySchemaProperty objects.

System_CAPS_pubclassActiveDirectoryServerDownException

The ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.

System_CAPS_pubclassActiveDirectorySite

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.

System_CAPS_pubclassActiveDirectorySiteCollection

The ActiveDirectorySiteCollection class is a read/write collection that contains ActiveDirectorySite objects.

System_CAPS_pubclassActiveDirectorySiteLink

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.

System_CAPS_pubclassActiveDirectorySiteLinkBridge

The ActiveDirectorySiteLinkBridge class represents a set of site links that communicate through a transport.

System_CAPS_pubclassActiveDirectorySiteLinkCollection

The ActiveDirectorySiteLinkCollection class is a read/write collection that contains ActiveDirectorySiteLink objects.

System_CAPS_pubclassActiveDirectorySubnet

The ActiveDirectorySubnet class represents a subnet in a Forest.

System_CAPS_pubclassActiveDirectorySubnetCollection

The ActiveDirectorySubnetCollection class is a read/write collection that contains ActiveDirectorySubnet objects.

System_CAPS_pubclassAdamInstance

The AdamInstance class represents an AD LDS instance server.

System_CAPS_pubclassAdamInstanceCollection

The AdamInstanceCollection class is a read-only collection that contains AdamInstance objects.

System_CAPS_pubclassAdamRoleCollection

The AdamRoleCollection class is a read-only collection that contains AdamRole items.

System_CAPS_pubclassApplicationPartition

The ApplicationPartition class represents an application partition for a particular domain.

System_CAPS_pubclassApplicationPartitionCollection

The ApplicationPartitionCollection class is a read-only collection that contains ApplicationPartition objects.

System_CAPS_pubclassAttributeMetadata

The AttributeMetadata class is used to contain replication metadata for an Active Directory Domain Services attribute.

System_CAPS_pubclassAttributeMetadataCollection

A read-only collection that contains ApplicationPartition objects.

System_CAPS_pubclassConfigurationSet

The ConfigurationSet class represents a configuration set for one or more AD LDS instances.

System_CAPS_pubclassDirectoryContext

The DirectoryContext class identifies a specific directory and the credentials that are used to access the directory.

System_CAPS_pubclassDirectoryServer

The DirectoryServer class is an abstract class that represents an Active Directory Domain Services server or AD LDS instance.

System_CAPS_pubclassDirectoryServerCollection

The DirectoryServerCollection class is a read/write collection that contains DirectoryServer objects.

System_CAPS_pubclassDomain

The Domain class represents an Active Directory domain.

System_CAPS_pubclassDomainCollection

The DomainCollection class is a read-only collection that contains Domain objects.

System_CAPS_pubclassDomainController

The DomainController class represents a domain controller in an Active Directory domain.

System_CAPS_pubclassDomainControllerCollection

The DomainControllerCollection class is a read-only collection that contains DomainController objects.

System_CAPS_pubclassForest

The Forest class represents an Active Directory Domain Services forest.

System_CAPS_pubclassForestTrustCollisionException

The ForestTrustCollisionException class exception is thrown when a trust collision occurs during a trust relationship management request.

System_CAPS_pubclassForestTrustDomainInfoCollection

The ForestTrustDomainInfoCollection class is a read-only collection that contains ForestTrustDomainInformation objects.

System_CAPS_pubclassForestTrustDomainInformation

The ForestTrustDomainInformation class contains information about a Domain object and is contained in a ForestTrustDomainInfoCollection object.

System_CAPS_pubclassForestTrustRelationshipCollision

Represents a collision record resulting from a collision between forest trust records.

System_CAPS_pubclassForestTrustRelationshipCollisionCollection

The ForestTrustRelationshipCollisionCollection class is a read-only collection that contains ForestTrustRelationshipCollision objects.

System_CAPS_pubclassForestTrustRelationshipInformation

The ForestTrustRelationshipInformation class contains information about a trust relationship between two Forest objects.

System_CAPS_pubclassGlobalCatalog

The GlobalCatalog class represents a global catalog server. A global catalog server is a domain controller that hosts a replica of the global catalog.

System_CAPS_pubclassGlobalCatalogCollection

The GlobalCatalogCollection class is a read-only collection that contains GlobalCatalog objects.

System_CAPS_pubclassReadOnlyActiveDirectorySchemaClassCollection

The ReadOnlyActiveDirectorySchemaClassCollection class is a read-only collection that contains ActiveDirectorySchemaClass objects.

System_CAPS_pubclassReadOnlyActiveDirectorySchemaPropertyCollection

The ReadOnlyActiveDirectorySchemaPropertyCollection class is a read-only collection that contains ActiveDirectorySchemaProperty objects.

System_CAPS_pubclassReadOnlyDirectoryServerCollection

The ReadOnlyDirectoryServerCollection class is a read-only collection that contains DirectoryServer objects.

System_CAPS_pubclassReadOnlySiteCollection

The ReadOnlySiteCollection class is a read-only collection of ActiveDirectorySite objects.

System_CAPS_pubclassReadOnlySiteLinkBridgeCollection

The ReadOnlySiteLinkBridgeCollection class is a read-only collection that contains ActiveDirectorySiteLinkBridge objects.

System_CAPS_pubclassReadOnlySiteLinkCollection

The ReadOnlySiteLinkCollection class is a read-only collection that contains ActiveDirectorySiteLink objects.

System_CAPS_pubclassReadOnlyStringCollection

The ReadOnlyStringCollection class is a read-only collection that contains String objects.

System_CAPS_pubclassReplicationConnection

The ReplicationConnection class represents a replication connection.

System_CAPS_pubclassReplicationConnectionCollection

The ReplicationConnectionCollection class is a read-only collection of ReplicationConnection objects.

System_CAPS_pubclassReplicationCursor

The ReplicationCursor class represents a replication operation occurrence.

System_CAPS_pubclassReplicationCursorCollection

The ReplicationCursorCollection class is a read-only collection that contains ReplicationCursor objects.

System_CAPS_pubclassReplicationFailure

Contains information about a failed replication attempt.

System_CAPS_pubclassReplicationFailureCollection

The ReplicationFailureCollection class is a read-only collection that contains ReplicationFailure objects.

System_CAPS_pubclassReplicationNeighbor

The ReplicationNeighbor class contains information about a replication neighbor of an AdamInstance or DomainController object.

System_CAPS_pubclassReplicationNeighborCollection

The ReplicationNeighborCollection class is a read-only collection that contains ReplicationNeighbor objects.

System_CAPS_pubclassReplicationOperation

The ReplicationOperation class represents an Active Directory Domain Services replication operation.

System_CAPS_pubclassReplicationOperationCollection

The ReplicationOperationCollection class is a read-only collection that contains ReplicationOperation objects.

System_CAPS_pubclassReplicationOperationInformation

The ReplicationOperationInformation class contains information about an Active Directory Domain Services replication operation.

System_CAPS_pubclassSyncFromAllServersErrorInformation

Contains information about a SyncFromAllServersOperationException exception.

System_CAPS_pubclassSyncFromAllServersOperationException

The SyncFromAllServersOperationException exception is thrown when the request to synchronize from all servers fails.

System_CAPS_pubclassTopLevelName

Contains forest trust account information about a top-level domain in a Forest.

System_CAPS_pubclassTopLevelNameCollection

The TopLevelNameCollection class is a read-only collection that contains TopLevelName objects.

System_CAPS_pubclassTrustRelationshipInformation

The TrustRelationshipInformation class contains information for a trust relationship between a pair of Domain or Forest objects.

System_CAPS_pubclassTrustRelationshipInformationCollection

The TrustRelationshipInformationCollection class contains a collection of TrustRelationshipInformation objects.

DelegateDescription
System_CAPS_pubdelegateSyncUpdateCallback

Receives event notifications during a replica synchronization.

EnumerationDescription
System_CAPS_pubenumActiveDirectoryRole

Identifies specific roles within a domain.

System_CAPS_pubenumActiveDirectorySiteOptions

Specifies the bit identifiers for the ActiveDirectorySite object site options.

System_CAPS_pubenumActiveDirectorySyntax

Specifies the data representation (syntax) type of a ActiveDirectorySchemaProperty object.

System_CAPS_pubenumActiveDirectoryTransportType

Identifies the transport type of a replication connection.

System_CAPS_pubenumAdamRole

Indicates specific roles of a AdamInstance object.

System_CAPS_pubenumDirectoryContextType

Specifies the context type for an DirectoryContext object.

System_CAPS_pubenumDomainCollisionOptions

Specifies additional information about a forest trust collision when the CollisionType property value is Domain.

System_CAPS_pubenumDomainMode

Indicates the mode that a domain is operating in.

System_CAPS_pubenumForestMode

Indicates the mode in which a Forest is operating.

System_CAPS_pubenumForestTrustCollisionType

Specifies the collision type of a ForestTrustRelationshipCollision object.

System_CAPS_pubenumForestTrustDomainStatus

Indicates the status of a forest trust relationship.

System_CAPS_pubenumHourOfDay

Indicates the hour of the day.

System_CAPS_pubenumLocatorOptions

Specifies search flags for finding a domain controller in a domain.

System_CAPS_pubenumMinuteOfHour

Indicates the 15-minute intervals within an hour.

System_CAPS_pubenumNotificationStatus

Represents the notification status of a replication connection.

System_CAPS_pubenumPropertyTypes

Specifies the property types to select when calling the ActiveDirectorySchema.FindAllProperties(PropertyTypes) method.

System_CAPS_pubenumReplicationNeighbor.ReplicationNeighborOptions

Specifies the options for a ReplicationNeighbor object.

System_CAPS_pubenumReplicationOperationType

Indicates a specific type of replication operation.

System_CAPS_pubenumReplicationSecurityLevel

Specifies the Active Directory Lightweight Directory (AD LDS) Services replication authentication mode.

System_CAPS_pubenumReplicationSpan

Determines the span of a replication connection.

System_CAPS_pubenumSchemaClassType

Specifies the class type of an ActiveDirectorySchemaClass object.

System_CAPS_pubenumSyncFromAllServersErrorCategory

Contains information about a SyncFromAllServersOperationException.

System_CAPS_pubenumSyncFromAllServersEvent

Used in the SyncUpdateCallback delegate to specify the type of synchronization event.

System_CAPS_pubenumSyncFromAllServersOptions

Specifies additional options when performing a synchronization.

System_CAPS_pubenumTopLevelNameCollisionOptions

Specifies additional information about a forest trust collision when the CollisionType property value is TopLevelName.

System_CAPS_pubenumTopLevelNameStatus

Indicates the forest trust account status of a top-level domain in a forest.

System_CAPS_pubenumTrustDirection

Indicates the direction of a trust.

System_CAPS_pubenumTrustType

Indicates the type of a TrustRelationshipInformation object.

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.

Return to top
Show:
© 2016 Microsoft