ActiveDirectorySiteLinkBridge.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.

Gets a ActiveDirectorySiteLinkBridge object that matches a given directory context and name for the RPC transport protocol only.

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

public static ActiveDirectorySiteLinkBridge FindByName(
	DirectoryContext context,
	string bridgeName
)

Parameters

context
Type: System.DirectoryServices.ActiveDirectory.DirectoryContext

A DirectoryContext object that specifies the context for the search.

bridgeName
Type: System.String

A String that specifies the name of the ActiveDirectorySiteLinkBridge object to search for.

Exception Condition
ActiveDirectoryObjectNotFoundException

In the context parameter that was specified, the site link bridge could not be found for the given bridgeName parameter.

ActiveDirectoryOperationException

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

ActiveDirectoryServerDownException

The target server is either busy or unavailable.

ArgumentException

This exception will occur for any of the following reasons.

  • The target in the context parameter is not a forest, configuration set, domain controller, or an AD LDS server.

  • The bridgeName parameter is an empty string.

ArgumentNullException

The context or the bridgeName parameter is null.

.NET Framework
Available since 2.0
Return to top
Show: