Represents a link to a test object or to a file on the server in Visual Studio Test Professional.
Inheritance Hierarchy
Object
  Microsoft.VisualStudio.TestTools.Common.Link
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class Link _
    Implements IVisiblePropertyProvider, IXmlTestStore
[SerializableAttribute]
public sealed class Link : IVisiblePropertyProvider, IXmlTestStore
[SerializableAttribute]
public ref class Link sealed : IVisiblePropertyProvider, 
    IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type Link =  
    class 
        interface IVisiblePropertyProvider 
        interface IXmlTestStore 
    end
public final class Link implements IVisiblePropertyProvider, IXmlTestStore
The Link type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | Link(Guid, String, String, Type) | Initializes a new instance of the Link class by using the provided ID, name, storage, and type. | 
| .gif) | 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. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | Enabled | Gets a value that indicates whether the link is enabled. | 
| .gif) | Id | Gets the GUID for the link. | 
| .gif) | Name | Gets the name of the link. | 
| .gif) | Storage | Gets the relative path of the object on the server. | 
| .gif) | Type | Gets the type of the target object. | 
| .gif) | VisibleProperties | Gets a collection of property descriptors for those properties that are visible to the user in the user interface. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).) | 
| .gif) | GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IsSame | Determines whether the provided link is the same as the current link. | 
| .gif) | Load | Loads an instance of this class from the provided XML element by using the provided parameters. | 
| .gif) | Save | Saves this object in the provided XML element. | 
| .gif) | ToString | Returns a string representation of the link. (Overrides Object.ToString.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.