ActiveDirectorySiteLink ActiveDirectorySiteLink ActiveDirectorySiteLink ActiveDirectorySiteLink Constructors

Definition

Overloads

ActiveDirectorySiteLink(DirectoryContext, String) ActiveDirectorySiteLink(DirectoryContext, String) ActiveDirectorySiteLink(DirectoryContext, String) ActiveDirectorySiteLink(DirectoryContext, String)

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

ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType)

Initializes a new instance of the ActiveDirectorySiteLink class using the specified DirectoryContext object, name, and transport type.

ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType, ActiveDirectorySchedule) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType, ActiveDirectorySchedule) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType, ActiveDirectorySchedule) ActiveDirectorySiteLink(DirectoryContext, String, ActiveDirectoryTransportType, ActiveDirectorySchedule)

Initializes a new instance of the ActiveDirectorySiteLink class using the specified DirectoryContext object, name, transport type, and replication schedule.

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

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

Parameters

siteLinkName
String String String String

The name for the site link.

Exceptions

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.

  • siteLinkName is an empty string.

Remarks

The default transport type is RPC.

See also

Initializes a new instance of the ActiveDirectorySiteLink class using the specified DirectoryContext object, name, and transport type.

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

Parameters

siteLinkName
String String String String

The name for the site link.

Exceptions

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.

  • siteLinkName is an empty string.

See also

Initializes a new instance of the ActiveDirectorySiteLink class using the specified DirectoryContext object, name, transport type, and replication schedule.

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

Parameters

siteLinkName
String String String String

The name for the site link.

schedule
ActiveDirectorySchedule ActiveDirectorySchedule ActiveDirectorySchedule ActiveDirectorySchedule

An ActiveDirectorySchedule object that specifies the replication schedule for this site link.

Exceptions

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.

  • siteLinkName is an empty string.

See also

Applies to