This documentation is archived and is not being maintained.

NameValue Class

Represents a named text value.


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

public sealed class NameValue

The NameValue type exposes the following members.

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

Public propertyNameGets or sets the name of the value.
Public propertyValueGets and sets the content that the Name property value identifies.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from 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. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringRetrieves a string that contains the Name and Value property values. (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.