Forest Class
TOC
Collapse the table of content
Expand the table of content

Forest Class

 

The Forest class represents an Active Directory Domain Services forest.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

System.Object
  System.DirectoryServices.ActiveDirectory.Forest

<DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand,
	Unrestricted := True)>
Public Class Forest
	Implements IDisposable

NameDescription
System_CAPS_pubpropertyApplicationPartitions

Gets a collection of all application partitions in the forest.

System_CAPS_pubpropertyDomains

Gets a collection of all domains in the forest.

System_CAPS_pubpropertyForestMode

Gets the operating mode of the forest.

System_CAPS_pubpropertyForestModeLevel

Gets the operating mode level of the forest.

System_CAPS_pubpropertyGlobalCatalogs

Gets a collection of all global catalogs in the forest.

System_CAPS_pubpropertyName

Gets the name of the forest.

System_CAPS_pubpropertyNamingRoleOwner

Gets the domain controller that holds the FSMO naming master role for the forest.

System_CAPS_pubpropertyRootDomain

Gets the first domain that was created in a forest.

System_CAPS_pubpropertySchema

Gets the schema of the forest.

System_CAPS_pubpropertySchemaRoleOwner

Gets the domain controller that holds the FSMO schema master role for the forest.

System_CAPS_pubpropertySites

Gets a collection of sites that are contained in the forest.

NameDescription
System_CAPS_pubmethodCreateLocalSideOfTrustRelationship(String, TrustDirection, String)

Creates the local side of a trust relationship with the specified forest.

System_CAPS_pubmethodCreateTrustRelationship(Forest, TrustDirection)

Creates both sides of a trust relationship with the specified forest.

System_CAPS_pubmethodDeleteLocalSideOfTrustRelationship(String)

Deletes the local side of a trust relationship.

System_CAPS_pubmethodDeleteTrustRelationship(Forest)

Deletes both sides of a trust relationship.

System_CAPS_pubmethodDispose()

Releases all managed and unmanaged resources that are held by the object.

System_CAPS_protmethodDispose(Boolean)

Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFindAllDiscoverableGlobalCatalogs()

Finds all of the discoverable global catalogs in this forest.

System_CAPS_pubmethodFindAllDiscoverableGlobalCatalogs(String)

Finds all of the discoverable global catalogs in this forest in a specified site.

System_CAPS_pubmethodFindAllGlobalCatalogs()

Finds all the global catalogs in this forest.

System_CAPS_pubmethodFindAllGlobalCatalogs(String)

Finds all the global catalogs in this forest for a given site.

System_CAPS_pubmethodFindGlobalCatalog()

Finds any global catalog in this forest.

System_CAPS_pubmethodFindGlobalCatalog(LocatorOptions)

Finds a global catalog in this forest for a specified location criteria.

System_CAPS_pubmethodFindGlobalCatalog(String)

Finds a global catalog in this forest for a specified site.

System_CAPS_pubmethodFindGlobalCatalog(String, LocatorOptions)

Finds a global catalog in this forest for a specified site and location criteria.

System_CAPS_pubmethodGetAllTrustRelationships()

Gets a collection of the trust relationships of the current forest.

System_CAPS_pubmethodSystem_CAPS_staticGetCurrentForest()

Gets a Forest object for the current user context.

System_CAPS_pubmethodSystem_CAPS_staticGetForest(DirectoryContext)

Gets a Forest object for the specified context.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSelectiveAuthenticationStatus(String)

Gets a Boolean value that indicates whether selective authentication is enabled on the inbound trust relationship with the specified forest. true if selective authentication is enabled; otherwise, false. For more information, see the Remarks section.

System_CAPS_pubmethodGetSidFilteringStatus(String)

Gets the SID filtering status of a trust.

System_CAPS_pubmethodGetTrustRelationship(String)

Gets the trust relationship between this forest and the specified forest.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRaiseForestFunctionality(ForestMode)

Raises the mode of operation for the forest.

System_CAPS_pubmethodRaiseForestFunctionalityLevel(Int32)

Raises the forest functionality level to the given setting.

System_CAPS_pubmethodRepairTrustRelationship(Forest)

Repairs a trust relationship.

System_CAPS_pubmethodSetSelectiveAuthenticationStatus(String, Boolean)

Enables or disables selective authentication for an inbound trust.

System_CAPS_pubmethodSetSidFilteringStatus(String, Boolean)

Sets the SID filtering state with the specified forest.

System_CAPS_pubmethodToString()

Returns a string representation of the current forest.(Overrides Object.ToString().)

System_CAPS_pubmethodUpdateLocalSideOfTrustRelationship(String, String)

Updates the password for the local side of a trust relationship.

System_CAPS_pubmethodUpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

Updates the password and trust direction for the local side of a trust relationship.

System_CAPS_pubmethodUpdateTrustRelationship(Forest, TrustDirection)

Updates the trust direction for a trust relationship. The trust directions are updated on both sides of the trust.

System_CAPS_pubmethodVerifyOutboundTrustRelationship(String)

Verifies that a previously established outbound trust with the specified forest is valid.

System_CAPS_pubmethodVerifyTrustRelationship(Forest, TrustDirection)

Verifies that a previously established trust with the specified forest is valid.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft