Share via


Link Constructors

Definition

Overloads

Link(Guid, String, String, Type)

Initializes a new instance of the Link class by using the provided ID, name, storage, and type.

Link(Guid, String, String, Type, Boolean)

Initializes a new instance of the Link class by using the provided ID, name, storage, type, and an indication of whether the link is enabled.

Initializes a new instance of the Link class by using the provided ID, name, storage, and type.

public:
 Link(Guid id, System::String ^ name, System::String ^ storage, Type ^ type);
public Link (Guid id, string name, string storage, Type type);
new Microsoft.VisualStudio.TestTools.Common.Link : Guid * string * string * Type -> Microsoft.VisualStudio.TestTools.Common.Link
Public Sub New (id As Guid, name As String, storage As String, type As Type)

Parameters

id
Guid

A GUID that uniquely identifies the link.

name
String

The name of the link.

storage
String

The relative path of the object on the server.

type
Type

A Type that indicates the type of the target object.

Applies to

Initializes a new instance of the Link class by using the provided ID, name, storage, type, and an indication of whether the link is enabled.

public:
 Link(Guid id, System::String ^ name, System::String ^ storage, Type ^ type, bool enabled);
public Link (Guid id, string name, string storage, Type type, bool enabled);
new Microsoft.VisualStudio.TestTools.Common.Link : Guid * string * string * Type * bool -> Microsoft.VisualStudio.TestTools.Common.Link
Public Sub New (id As Guid, name As String, storage As String, type As Type, enabled As Boolean)

Parameters

id
Guid

A GUID that uniquely identifies the link.

name
String

The name of the link.

storage
String

The relative path of the object on the server.

type
Type

A Type that indicates the type of the target object.

enabled
Boolean

true indicates that the link is enabled; otherwise, false.

Applies to