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
Source:
ActiveDirectorySiteLinkBridge.cs

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

C#
public ActiveDirectorySiteLinkBridge(System.DirectoryServices.ActiveDirectory.DirectoryContext context, string bridgeName);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ActiveDirectorySiteLinkBridge(DirectoryContext, String, ActiveDirectoryTransportType)

Source:
ActiveDirectorySiteLinkBridge.cs
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.

C#
public ActiveDirectorySiteLinkBridge(System.DirectoryServices.ActiveDirectory.DirectoryContext context, string bridgeName, System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType transport);

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

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10