Redigera

Dela via


ApplicationPartition.FindDirectoryServer Method

Definition

Retrieves a directory server for this application partition.

Overloads

FindDirectoryServer()

Returns a DirectoryServer object for this application partition and current site.

FindDirectoryServer(Boolean)

Returns a DirectoryServer object for the application partition and current site with an option to ignore cached information.

FindDirectoryServer(String)

Returns a DirectoryServer object for the application partition and a specified site.

FindDirectoryServer(String, Boolean)

Returns a DirectoryServer object for this application partition for a specified site, with an option to ignore cached information.

FindDirectoryServer()

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

Returns a DirectoryServer object for this application partition and current site.

public:
 System::DirectoryServices::ActiveDirectory::DirectoryServer ^ FindDirectoryServer();
public System.DirectoryServices.ActiveDirectory.DirectoryServer FindDirectoryServer ();
member this.FindDirectoryServer : unit -> System.DirectoryServices.ActiveDirectory.DirectoryServer
Public Function FindDirectoryServer () As DirectoryServer

Returns

A DirectoryServer object for this application partition and site.

Exceptions

The ApplicationPartition object has not yet been committed to the underlying directory store.

The object has been disposed.

See also

Applies to

FindDirectoryServer(Boolean)

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

Returns a DirectoryServer object for the application partition and current site with an option to ignore cached information.

public:
 System::DirectoryServices::ActiveDirectory::DirectoryServer ^ FindDirectoryServer(bool forceRediscovery);
public System.DirectoryServices.ActiveDirectory.DirectoryServer FindDirectoryServer (bool forceRediscovery);
member this.FindDirectoryServer : bool -> System.DirectoryServices.ActiveDirectory.DirectoryServer
Public Function FindDirectoryServer (forceRediscovery As Boolean) As DirectoryServer

Parameters

forceRediscovery
Boolean

A Boolean value that indicates whether cached information should be ignored. true if cached information should be ignored; otherwise, false.

Returns

A DirectoryServer object for this application partition and site.

Exceptions

The ApplicationPartition object has not yet been committed to the underlying directory store.

The object has been disposed.

See also

Applies to

FindDirectoryServer(String)

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

Returns a DirectoryServer object for the application partition and a specified site.

public:
 System::DirectoryServices::ActiveDirectory::DirectoryServer ^ FindDirectoryServer(System::String ^ siteName);
public System.DirectoryServices.ActiveDirectory.DirectoryServer FindDirectoryServer (string siteName);
member this.FindDirectoryServer : string -> System.DirectoryServices.ActiveDirectory.DirectoryServer
Public Function FindDirectoryServer (siteName As String) As DirectoryServer

Parameters

siteName
String

A String that specifies a site name.

Returns

A DirectoryServer object for this application partition and specified site.

Exceptions

siteName is an empty string.

siteName is null.

The ApplicationPartition object has not yet been committed to the underlying directory store.

The object has been disposed.

See also

Applies to

FindDirectoryServer(String, Boolean)

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

Returns a DirectoryServer object for this application partition for a specified site, with an option to ignore cached information.

public:
 System::DirectoryServices::ActiveDirectory::DirectoryServer ^ FindDirectoryServer(System::String ^ siteName, bool forceRediscovery);
public System.DirectoryServices.ActiveDirectory.DirectoryServer FindDirectoryServer (string siteName, bool forceRediscovery);
member this.FindDirectoryServer : string * bool -> System.DirectoryServices.ActiveDirectory.DirectoryServer
Public Function FindDirectoryServer (siteName As String, forceRediscovery As Boolean) As DirectoryServer

Parameters

siteName
String

A String that specifies a site name.

forceRediscovery
Boolean

A Boolean value that indicates whether cached information should be ignored. true if cached information should be ignored; otherwise, false.

Returns

A DirectoryServer object for this application partition and specified site.

Exceptions

siteName is an empty string.

siteName is null.

The ApplicationPartition object has not yet been committed to the underlying directory store.

The object has been disposed.

See also

Applies to