ReplicationConnection.FindByName Method (DirectoryContext, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the ReplicationConnection object that matches the specified target context and name.

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

public static ReplicationConnection FindByName(
	DirectoryContext context,
	string name
)

Parameters

context
Type: System.DirectoryServices.ActiveDirectory.DirectoryContext

A DirectoryContext object that contains the target and credentials to search for.

name
Type: System.String

The name of the connection to search for.

Return Value

Type: System.DirectoryServices.ActiveDirectory.ReplicationConnection

A ReplicationConnection object that represents the connection.

Exception Condition
ActiveDirectoryObjectNotFoundException

The connection could not be found.

ActiveDirectoryOperationException

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

ActiveDirectoryServerDownException

The target server is either busy or unavailable.

ArgumentException

context or name is not valid.

ArgumentNullException

context or name is null.

UnauthorizedAccessException

The specified account does not have permission to perform this operation.

.NET Framework
Available since 2.0
Return to top
Show: