Forest Forest Forest Forest Class

定義

Forest 類別表示 Active Directory 網域服務樹系。The Forest class represents an Active Directory Domain Services forest.

public ref class Forest : IDisposable
public class Forest : IDisposable
type Forest = class
    interface IDisposable
Public Class Forest
Implements IDisposable
繼承
ForestForestForestForest
實作

屬性

ApplicationPartitions ApplicationPartitions ApplicationPartitions ApplicationPartitions

取得此樹系中所有應用程式磁碟分割的集合。Gets a collection of all application partitions in the forest.

Domains Domains Domains Domains

取得此樹系中所有網域的集合。Gets a collection of all domains in the forest.

ForestMode ForestMode ForestMode ForestMode

取得此樹系的作業模式。Gets the operating mode of the forest.

ForestModeLevel ForestModeLevel ForestModeLevel ForestModeLevel

取得樹系的作業模式等級。Gets the operating mode level of the forest.

GlobalCatalogs GlobalCatalogs GlobalCatalogs GlobalCatalogs

取得此樹系中所有通用類別目錄的集合。Gets a collection of all global catalogs in the forest.

Name Name Name Name

取得樹系的名稱。Gets the name of the forest.

NamingRoleOwner NamingRoleOwner NamingRoleOwner NamingRoleOwner

取得持有此樹系的 FSMO 命名主機角色的網域控制站。Gets the domain controller that holds the FSMO naming master role for the forest.

RootDomain RootDomain RootDomain RootDomain

取得在樹系中建立的第一個網域。Gets the first domain that was created in a forest.

Schema Schema Schema Schema

取得此樹系的結構描述。Gets the schema of the forest.

SchemaRoleOwner SchemaRoleOwner SchemaRoleOwner SchemaRoleOwner

取得持有此樹系的 FSMO 結構描述主機角色的網域控制站。Gets the domain controller that holds the FSMO schema master role for the forest.

Sites Sites Sites Sites

取得包含在此樹系中的站台集合。Gets a collection of sites that are contained in the forest.

方法

CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String)

建立與指定樹系之信任關係的本機端。Creates the local side of a trust relationship with the specified forest.

CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection)

與指定之樹系建立信任關係的兩方。Creates both sides of a trust relationship with the specified forest.

DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String)

刪除信任關係的本機端。Deletes the local side of a trust relationship.

DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest)

刪除信任關係的雙方。Deletes both sides of a trust relationship.

Dispose() Dispose() Dispose() Dispose()

釋放此物件所持有的所有 Managed 和 Unmanaged 資源。Releases all managed and unmanaged resources that are held by the object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放此物件所使用的 Managed 資源,並選擇性地釋放 Unmanaged 資源。Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs()

在此樹系中尋找所有可以找到的通用類別目錄。Finds all of the discoverable global catalogs in this forest.

FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String)

在此樹系和指定之站台中尋找所有可以找到的通用類別目錄。Finds all of the discoverable global catalogs in this forest in a specified site.

FindAllGlobalCatalogs() FindAllGlobalCatalogs() FindAllGlobalCatalogs() FindAllGlobalCatalogs()

在此樹系中尋找所有通用類別目錄。Finds all the global catalogs in this forest.

FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String)

在此樹系中尋找給定之站台的所有通用類別目錄。Finds all the global catalogs in this forest for a given site.

FindGlobalCatalog() FindGlobalCatalog() FindGlobalCatalog() FindGlobalCatalog()

在此樹系中尋找任何通用類別目錄。Finds any global catalog in this forest.

FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions)

在此樹系中尋找指定之位置準則的通用類別目錄。Finds a global catalog in this forest for a specified location criteria.

FindGlobalCatalog(String) FindGlobalCatalog(String) FindGlobalCatalog(String) FindGlobalCatalog(String)

在此樹系中尋找指定之站台的通用類別目錄。Finds a global catalog in this forest for a specified site.

FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions)

在此樹系中尋找指定之站台和位置準則的通用類別目錄。Finds a global catalog in this forest for a specified site and location criteria.

GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships()

取得目前樹系的信任關係之集合。Gets a collection of the trust relationships of the current forest.

GetCurrentForest() GetCurrentForest() GetCurrentForest() GetCurrentForest()

取得目前使用者內容的 Forest 物件。Gets a Forest object for the current user context.

GetForest(DirectoryContext) GetForest(DirectoryContext) GetForest(DirectoryContext) GetForest(DirectoryContext)

取得指定之內容的 Forest 物件。Gets a Forest object for the specified context.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String)

取得可指出與指定樹系的連入信任關係是否已啟用選擇性驗證的布林值。Gets a Boolean value that indicates whether selective authentication is enabled on the inbound trust relationship with the specified forest. 如果已啟用選擇性驗證,則為 true,否則為 falsetrue if selective authentication is enabled; otherwise, false.

GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String)

取得某信任的 SID 篩選狀態。Gets the SID filtering status of a trust.

GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String)

取得此樹系和指定之樹系之間的信任關係。Gets the trust relationship between this forest and the specified forest.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode)

提高此樹系的作業模式。Raises the mode of operation for the forest.

RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32)

將樹系功能等級提高至指定的設定。Raises the forest functionality level to the given setting.

RepairTrustRelationship(Forest) RepairTrustRelationship(Forest) RepairTrustRelationship(Forest) RepairTrustRelationship(Forest)

修復信任關係。Repairs a trust relationship.

SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean)

啟用或停用連入信任的選擇性驗證。Enables or disables selective authentication for an inbound trust.

SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean)

設定指定之樹系的 SID 篩選狀態。Sets the SID filtering state with the specified forest.

ToString() ToString() ToString() ToString()

傳回目前樹系的字串表示。Returns a string representation of the current forest.

UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String)

更新信任關係本機端的密碼。Updates the password for the local side of a trust relationship.

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

更新信任關係本機端的密碼和信任方向。Updates the password and trust direction for the local side of a trust relationship.

UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection)

更新信任關係的信任方向,Updates the trust direction for a trust relationship. 信任的兩端都已更新信任方向。The trust directions are updated on both sides of the trust.

VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String)

驗證之前與指定之樹系之間建立的傳出信任確實有效。Verifies that a previously established outbound trust with the specified forest is valid.

VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection)

驗證之前與指定之樹系之間建立的信任確實有效。Verifies that a previously established trust with the specified forest is valid.

安全性

DirectoryServicesPermission
要求值: LinkDemandDemand value: LinkDemand

適用於