Editar

Partilhar via


ActiveDirectorySiteLinkBridge Constructors

Definition

Overloads

ActiveDirectorySiteLinkBridge(DirectoryContext, String)

Initializes a new instance of the ActiveDirectorySiteLinkBridge class using the specified DirectoryContext object and name.

ActiveDirectorySiteLinkBridge(DirectoryContext, String, ActiveDirectoryTransportType)

Initializes an instance of the ActiveDirectorySiteLinkBridge class using the specified DirectoryContext object, name, and transport type.

ActiveDirectorySiteLinkBridge(DirectoryContext, String)

Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs

Initializes a new instance of the ActiveDirectorySiteLinkBridge class using the specified DirectoryContext object and name.

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

Parameters

context
DirectoryContext

A DirectoryContext object that specifies the context for this ActiveDirectorySiteLinkBridge object.

bridgeName
String

A String that specifies the name for this ActiveDirectorySiteLinkBridge object.

Exceptions

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

The target server is either busy or unavailable.

This exception will occur for any of the following reasons:

  • The context parameter does not refer to a valid forest, configuration set, domain controller, or AD LDS server.

  • The bridgeName parameter is an empty string.

The context parameter or the bridgeName parameter is null.

The credentials that were supplied are not valid.

Remarks

The default ActiveDirectoryTransportType type is RPC.

See also

Applies to

ActiveDirectorySiteLinkBridge(DirectoryContext, String, ActiveDirectoryTransportType)

Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs
Source:
ActiveDirectorySiteLinkBridge.cs

Initializes an instance of the ActiveDirectorySiteLinkBridge class using the specified DirectoryContext object, name, and transport type.

public:
 ActiveDirectorySiteLinkBridge(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ bridgeName, System::DirectoryServices::ActiveDirectory::ActiveDirectoryTransportType transport);
public ActiveDirectorySiteLinkBridge (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string bridgeName, System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType transport);
new System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLinkBridge : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLinkBridge
Public Sub New (context As DirectoryContext, bridgeName As String, transport As ActiveDirectoryTransportType)

Parameters

context
DirectoryContext

A DirectoryContext object that specifies the context for this ActiveDirectorySiteLinkBridge object.

bridgeName
String

A String that specifies the name for this ActiveDirectorySiteLinkBridge object.

transport
ActiveDirectoryTransportType

A ActiveDirectoryTransportType value that specifies the transport type to be used.

Exceptions

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

The target server is either busy or unavailable.

This exception will occur for any of the following reasons:

  • The context parameter does not refer to a valid forest, configuration set, domain controller, or AD LDS server.

  • The bridgeName parameter is an empty string.

The context parameter or the bridgeName parameter is null.

The credentials that were supplied are not valid.

The transport type specified in the transport parameter is not supported.

See also

Applies to