This documentation is archived and is not being maintained.
ActiveDirectorySite Class
Visual Studio 2010
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.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
The ActiveDirectorySite type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ActiveDirectorySite | Initializes a new instance of the ActiveDirectorySite class, using the specified DirectoryContext object. |
| Name | Description | |
|---|---|---|
![]() | AdjacentSites | Gets a read-only collection of sites that are connected through a common site link with this site object. |
![]() | BridgeheadServers | Gets a read-only collection of bridgehead servers for this site. |
![]() | Domains | Gets all domains in the site. |
![]() | InterSiteTopologyGenerator | Gets or sets the directory server that serves as the inter-site topology generator. |
![]() | IntraSiteReplicationSchedule | Gets or sets the default setting for the replication schedule for the site. |
![]() | Location | Gets or sets the location of the site. |
![]() | Name | Gets the name of the site. |
![]() | Options | Gets or sets the site options. |
![]() | PreferredRpcBridgeheadServers | Returns a collection of directory servers that are designated as preferred bridgehead servers for the RPC transport. |
![]() | PreferredSmtpBridgeheadServers | Returns a collection of directory servers that are designated as preferred bridgehead servers for the SMTP transport. |
![]() | Servers | Returns a read-only collection of directory servers in the site. |
![]() | SiteLinks | Gets a read-only collection of site links that involve this site. |
![]() | Subnets | Returns a writable collection of subnets in the site. |
| Name | Description | |
|---|---|---|
![]() | Delete | Deletes the current site. |
![]() | Dispose() | Releases all resources used by the object. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the object and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FindByName | Returns a site based on a site name. |
![]() ![]() | GetComputerSite | Gets the site that this computer is a member of. |
![]() | GetDirectoryEntry | Gets the DirectoryEntry object for this site. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Save | Writes any changes to the object to the Active Directory Domain Services store. |
![]() | ToString | Returns the name of the site. (Overrides Object::ToString().) |
- DirectoryServicesPermission
Demand value: LinkDemand
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
