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 | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
Enabled | Gets a value that indicates whether the link is enabled. | |
Id | Gets the GUID for the link. | |
Name | Gets the name of the link. | |
Storage | Gets the relative path of the object on the server. | |
Type | Gets the type of the target object. | |
VisibleProperties | Gets a collection of property descriptors for those properties that are visible to the user in the user interface. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the provided object is equal to the current object. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsSame | Determines whether the provided link is the same as the current link. | |
Load | Loads an instance of this class from the provided XML element by using the provided parameters. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save | Saves this object in the provided XML element. | |
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.