Delen via


IdAndName Structure

Represents a test object that has only an ID and a name.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Public Structure IdAndName _
    Implements IEquatable(Of IdAndName)
public struct IdAndName : IEquatable<IdAndName>
public value class IdAndName : IEquatable<IdAndName>
[<Sealed>]
type IdAndName =  
    struct 
        interface IEquatable<IdAndName>
    end
JScript supports the use of structures, but not the declaration of new ones.

The IdAndName type exposes the following members.

Constructors

  Name Description
Public method IdAndName Initializes a new instance of the IdAndName class by using the provided ID and name.

Top

Properties

  Name Description
Public property Id Gets the ID for the test object.
Public property Name Gets the name for the test object.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the provided object is equal to the current object. (Overrides ValueType.Equals(Object).)
Public method Equals(IdAndName) Determines whether the provided IdAndName object is equal to the current object.
Public method GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Returns a value that indicates whether the values of two specified IdAndName objects are equal (==).
Public operatorStatic member Inequality Returns a value that indicates whether the values of two specified IdAndName objects are not equal (!=).

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.TeamFoundation.TestManagement.Client Namespace