ActiveDirectorySite 类

定义

ActiveDirectorySite 类定义了一组域控制器,按照速度和成本来衡量,这组控制器连接良好。The ActiveDirectorySite class defines a set of domain controllers that are well-connected in terms of speed and cost. 站点对象由一个或多个 IP 子网的集合构成。A site object consists of a set of one or more IP subnets.

public ref class ActiveDirectorySite : IDisposable
public class ActiveDirectorySite : IDisposable
type ActiveDirectorySite = class
    interface IDisposable
Public Class ActiveDirectorySite
Implements IDisposable
继承
ActiveDirectorySite
实现

构造函数

ActiveDirectorySite(DirectoryContext, String)

使用指定的 ActiveDirectorySite 对象初始化 DirectoryContext 类的新实例。Initializes a new instance of the ActiveDirectorySite class, using the specified DirectoryContext object.

属性

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

返回一个目录服务器的集合,指定这些服务器作为 RPC 传输的首选桥头服务器。Returns a collection of directory servers that are designated as preferred bridgehead servers for the RPC transport.

PreferredSmtpBridgeheadServers

返回一个目录服务器的集合,指定这些服务器作为 SMTP 传输的首选桥头服务器。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.

方法

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.

(继承自 Object)
FindByName(DirectoryContext, String)

根据站点名称返回站点。Returns a site based on a site name.

GetComputerSite()

获取此计算机所属的站点。Gets the site that this computer is a member of.

GetDirectoryEntry()

获取此站点的 DirectoryEntry 对象。Gets the DirectoryEntry object for this site.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Save()

将对该对象的任何更改写入 Active Directory 域服务存储区中。Writes any changes to the object to the Active Directory Domain Services store.

ToString()

返回站点的名称。Returns the name of the site.

适用于