ApplicationPartition Constructors

Definition

Initializes a new instance of the ApplicationPartition class.

Overloads

ApplicationPartition(DirectoryContext, String)

Initializes a new instance of the ApplicationPartition class, using the specified distinguished name.

ApplicationPartition(DirectoryContext, String, String)

Initializes a new instance of the ApplicationPartition class, using the specified distinguished name and object class.

ApplicationPartition(DirectoryContext, String)

Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs

Initializes a new instance of the ApplicationPartition class, using the specified distinguished name.

public:
 ApplicationPartition(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ distinguishedName);
public ApplicationPartition (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string distinguishedName);
new System.DirectoryServices.ActiveDirectory.ApplicationPartition : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.ApplicationPartition
Public Sub New (context As DirectoryContext, distinguishedName As String)

Parameters

context
DirectoryContext

The DirectoryContext object that is used to create this application partition.

distinguishedName
String

The String that specifies the distinguished name for this application partition.

Exceptions

A call to the underlying directory service resulted in an error.

The target server is either busy or unavailable.

The target in the context parameter is not a server, or the distinguishedName parameter is not in a valid distinguished name format.

context or distinguishedName is null.

Remarks

The default object class that represents the application partition is domainDNS.

Applies to

ApplicationPartition(DirectoryContext, String, String)

Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs
Source:
ApplicationPartition.cs

Initializes a new instance of the ApplicationPartition class, using the specified distinguished name and object class.

public:
 ApplicationPartition(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ distinguishedName, System::String ^ objectClass);
public ApplicationPartition (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string distinguishedName, string objectClass);
new System.DirectoryServices.ActiveDirectory.ApplicationPartition : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * string -> System.DirectoryServices.ActiveDirectory.ApplicationPartition
Public Sub New (context As DirectoryContext, distinguishedName As String, objectClass As String)

Parameters

context
DirectoryContext

The DirectoryContext object that is used to create this application partition.

distinguishedName
String

The String that specifies the distinguished name for this application partition.

objectClass
String

The String that specifies the object class that represents this application partition.

Exceptions

A call to the underlying directory service resulted in an error.

The target server is either busy or unavailable.

The target in the context parameter is not a server, or the distinguishedName parameter is not in a valid distinguished name format. This exception is also thrown if the application partition is being created within an Active Directory forest, rather than an AD LDS configuration set, because the objectClass can only be specified for AD LDS configuration sets.

context or distinguishedName is null.

Remarks

The default object class that represents the application partition is domainDNS.

Applies to