NameValue Class

Represents a named text value.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.Common.NameValue

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

Syntax

'Declaration
Public NotInheritable Class NameValue
public sealed class NameValue
public ref class NameValue sealed
[<Sealed>]
type NameValue =  class end
public final class NameValue

The NameValue type exposes the following members.

Constructors

  Name Description
Public method NameValue() Initializes an instance of the NameValue class.
Public method NameValue(NameValue) Initializes an instance of the NameValue class that is identical to the provided NameValue object.
Public method NameValue(String, String) Initializes an instance of the NameValue class by using the provided parameters.

Top

Properties

  Name Description
Public property Name Gets or sets the name of the value.
Public property Value Gets and sets the content that the Name property value identifies.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from 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. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Retrieves a string that contains the Name and Value property values. (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