ActiveDirectoryInterSiteTransport.FindByTransportType Method (DirectoryContext, ActiveDirectoryTransportType)

 
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 an ActiveDirectoryInterSiteTransport object for a given directory context and transport type.

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

public static ActiveDirectoryInterSiteTransport FindByTransportType(
	DirectoryContext context,
	ActiveDirectoryTransportType transport
)

Parameters

context
Type: System.DirectoryServices.ActiveDirectory.DirectoryContext

A DirectoryContext object that specifies the context for the search.

transport
Type: System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType

An ActiveDirectoryTransportType object that specifies a transport type to find in the search.

Return Value

Type: System.DirectoryServices.ActiveDirectory.ActiveDirectoryInterSiteTransport

An ActiveDirectoryInterSiteTransport object for the item found. An ActiveDirectoryObjectNotFoundException exception is thrown if an object was not found.

Exception Condition
ActiveDirectoryObjectNotFoundException

The object was not found.

ActiveDirectoryOperationException

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

ActiveDirectoryServerDownException

The target server is either busy or unavailable.

ArgumentException

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

ArgumentNullException

The context parameter is null.

AuthenticationException

The credentials that were supplied are not valid.

InvalidEnumArgumentException

The transport parameter is not a valid ActiveDirectoryTransportType value.

.NET Framework
Available since 2.0
Return to top
Show: