Partager via


NameValue Class

Represents a named text value.

Inheritance Hierarchy

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.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (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