Link Class

Represents a link to a test object or to a file on the server in Visual Studio Test Professional.

Inheritance Hierarchy

System.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
Public method Link(Guid, String, String, Type) Initializes a new instance of the Link class by using the provided ID, name, storage, and type.
Public method 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
Public property Enabled Gets a value that indicates whether the link is enabled.
Public property Id Gets the GUID for the link.
Public property Name Gets the name of the link.
Public property Storage Gets the relative path of the object on the server.
Public property Type Gets the type of the target object.
Public property VisibleProperties Gets a collection of property descriptors for those properties that are visible to the user in the user interface.

Top

Methods

  Name Description
Public method Equals Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsSame Determines whether the provided link is the same as the current link.
Public method Load Loads an instance of this class from the provided XML element by using the provided parameters.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save Saves this object in the provided XML element.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TestTools.Common Namespace

IVisiblePropertyProvider

IXmlTestStore