ActiveDirectorySiteLink.FindByName ActiveDirectorySiteLink.FindByName ActiveDirectorySiteLink.FindByName ActiveDirectorySiteLink.FindByName Method

Definition

Returns a site link based on a site link name.

Overloads

FindByName(DirectoryContext, String, ActiveDirectoryTransportType) FindByName(DirectoryContext, String, ActiveDirectoryTransportType) FindByName(DirectoryContext, String, ActiveDirectoryTransportType) FindByName(DirectoryContext, String, ActiveDirectoryTransportType)

Returns a site link based on a site link name and transport.

FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String)

Returns a site link based on a site link name.

Returns a site link based on a site link name and transport.

public:
 static System::DirectoryServices::ActiveDirectory::ActiveDirectorySiteLink ^ FindByName(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ siteLinkName, System::DirectoryServices::ActiveDirectory::ActiveDirectoryTransportType transport);
public static System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink FindByName (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string siteLinkName, System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType transport);
static member FindByName : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink
Public Shared Function FindByName (context As DirectoryContext, siteLinkName As String, transport As ActiveDirectoryTransportType) As ActiveDirectorySiteLink

Parameters

context
DirectoryContext DirectoryContext DirectoryContext DirectoryContext

An DirectoryContext object that is valid for this site link.

siteLinkName
String String String String

The name of the site link to find.

Returns

Exceptions

This exception will occur for any one 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

Returns a site link based on a site link name.

public:
 static System::DirectoryServices::ActiveDirectory::ActiveDirectorySiteLink ^ FindByName(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ siteLinkName);
public static System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink FindByName (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string siteLinkName);
static member FindByName : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink
Public Shared Function FindByName (context As DirectoryContext, siteLinkName As String) As ActiveDirectorySiteLink

Parameters

context
DirectoryContext DirectoryContext DirectoryContext DirectoryContext

An DirectoryContext object that is valid for this site link.

siteLinkName
String String String String

The name of the site link to find.

Returns

Exceptions

This exception will occur for any one 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