ApplicationPartition Class

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

System.Object
  System.DirectoryServices.ActiveDirectory.ActiveDirectoryPartition
    System.DirectoryServices.ActiveDirectory.ApplicationPartition

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

'Declaration
<DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, Unrestricted := True)> _
Public Class ApplicationPartition _
	Inherits ActiveDirectoryPartition

The ApplicationPartition type exposes the following members.

  NameDescription
Public methodApplicationPartition(DirectoryContext, String)Initializes a new instance of the ApplicationPartition class, using the specified distinguished name.
Public methodApplicationPartition(DirectoryContext, String, String)Initializes a new instance of the ApplicationPartition class, using the specified distinguished name and object class.
Top

  NameDescription
Public propertyDirectoryServersGets an DirectoryServerCollection object that contains the directory servers that host this application partition.
Public propertyNameGets the partition name. (Inherited from ActiveDirectoryPartition.)
Public propertySecurityReferenceDomainGets and sets the security reference domain for this application partition.
Top

  NameDescription
Public methodDeleteDeletes this application partition.
Public methodDisposeReleases all managed and unmanaged resources that are held by the object. (Inherited from ActiveDirectoryPartition.)
Protected methodDispose(Boolean)Releases the managed resources that are used by the ApplicationPartition object and optionally releases unmanaged resources. (Overrides ActiveDirectoryPartition.Dispose(Boolean).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindAllDirectoryServersReturns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that host this application partition.
Public methodFindAllDirectoryServers(String)Returns an ReadOnlyDirectoryServerCollection object that contains all of the directory servers that host this application partition in the specified site.
Public methodFindAllDiscoverableDirectoryServersReturns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered either a site-specific DNS record for the current site or a non-site-specific DNS record for the application partition.
Public methodFindAllDiscoverableDirectoryServers(String)Returns a ReadOnlyDirectoryServerCollection object that contains all of the directory servers that have registered a site-specific DNS record, for the specified site, for the application partition.
Public methodStatic memberFindByNameReturns an ApplicationPartition object for a given DirectoryContext object and distinguished name.
Public methodFindDirectoryServerReturns a DirectoryServer object for this application partition and current site.
Public methodFindDirectoryServer(Boolean)Returns a DirectoryServer object for the application partition and current site with an option to ignore cached information.
Public methodFindDirectoryServer(String)Returns a DirectoryServer object for the application partition and a specified site.
Public methodFindDirectoryServer(String, Boolean)Returns a DirectoryServer object for this application partition for a specified site, with an option to ignore cached information.
Public methodStatic memberGetApplicationPartitionReturns an ApplicationPartition object for a specified directory context.
Public methodGetDirectoryEntryGets a DirectoryEntry object for this application partition. (Overrides ActiveDirectoryPartition.GetDirectoryEntry.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveCommits all changes to the current application partition object to the underlying directory store.
Public methodToStringRetrieves a string representation of the current directory partition. (Inherited from ActiveDirectoryPartition.)
Top

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft