Export (0) Print
Expand All

Link Class

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


Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

public sealed class Link : IVisiblePropertyProvider, IXmlTestStore

The Link type exposes the following members.

Public methodLink(Guid, String, String, Type)Initializes a new instance of the Link class by using the provided ID, name, storage, and type.
Public methodLink(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.

Public propertyEnabledGets a value that indicates whether the link is enabled.
Public propertyIdGets the GUID for the link.
Public propertyNameGets the name of the link.
Public propertyStorageGets the relative path of the object on the server.
Public propertyTypeGets the type of the target object.
Public propertyVisiblePropertiesGets a collection of property descriptors for those properties that are visible to the user in the user interface.

Public methodEqualsDetermines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsSameDetermines whether the provided link is the same as the current link.
Public methodLoadLoads an instance of this class from the provided XML element by using the provided parameters.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveSaves this object in the provided XML element.
Public methodToStringReturns a string representation of the link. (Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2014 Microsoft