Breyta

Deila með


ActiveDirectorySiteLink Constructors

Definition

Initializes a new instance of the ActiveDirectorySiteLink class.

Overloads

ActiveDirectorySiteLink(DirectoryContext, String)

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

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)

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

Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs

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

context
DirectoryContext

An DirectoryContext object for creating this site link.

siteLinkName
String

The name for the site link.

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 target in the context parameter is not a forest, configuration set, domain controller, or an AD LDS server.

  • siteLinkName is an empty string.

context or siteLinkName is null.

The credentials that were supplied are not valid.

Remarks

The default transport type is RPC.

See also

Applies to

Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs

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

context
DirectoryContext

A DirectoryContext object for creating this site link.

siteLinkName
String

The name for the site link.

transport
ActiveDirectoryTransportType

An ActiveDirectoryTransportType object that specifies the transport type.

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 target in the context parameter is not a forest, configuration set, domain controller, or an AD LDS server.

  • siteLinkName is an empty string.

context parameter or siteLinkName is null.

The credentials that were supplied are not valid.

The transport type is not supported.

See also

Applies to

Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs
Source:
ActiveDirectorySiteLink.cs

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);
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

context
DirectoryContext

A DirectoryContext object for creating this site link.

siteLinkName
String

The name for the site link.

transport
ActiveDirectoryTransportType

An ActiveDirectoryTransportType object that specifies the transport type.

schedule
ActiveDirectorySchedule

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

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 target in the context parameter is not a forest, configuration set, domain controller, or an AD LDS server.

  • siteLinkName is an empty string.

context or the siteLinkName is null.

The credentials that were supplied are not valid.

The transport type is not supported.

See also

Applies to