ActiveDirectorySiteLinkBridge Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
contextparameter does not refer to a valid forest, configuration set, domain controller, or AD LDS server.The
bridgeNameparameter 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)
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
contextparameter does not refer to a valid forest, configuration set, domain controller, or AD LDS server.The
bridgeNameparameter is an empty string.
The context parameter or the bridgeName parameter is null.
The credentials that were supplied are not valid.
transport is not a valid ActiveDirectoryTransportType value.
The transport type specified in the transport parameter is not supported.