Share 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

public struct IdAndName : IEquatable<IdAndName>
public value struct IdAndName : IEquatable<IdAndName>
[<Sealed>]
type IdAndName = 
    struct
        interface IEquatable<IdAndName>
    end
Public Structure IdAndName
    Implements IEquatable(Of IdAndName)

Constructors

Name Description
System_CAPS_pubmethod IdAndName(Int32, String)

Initializes a new instance of the IdAndName class by using the provided ID and name.

Properties

Name Description
System_CAPS_pubproperty Id

Gets the ID for the test object.

System_CAPS_pubproperty Name

Gets the name for the test object.

Methods

Name Description
System_CAPS_pubmethod Equals(IdAndName)

Determines whether the provided IdAndName object is equal to the current object.

System_CAPS_pubmethod Equals(Object)

Determines whether the provided object is equal to the current object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethod GetHashCode()

Returns the hash code for this instance.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from ValueType.)

Operators

Name Description
System_CAPS_puboperatorSystem_CAPS_static Equality(IdAndName, IdAndName)

Returns a value that indicates whether the values of two specified IdAndName objects are equal (==).

System_CAPS_puboperatorSystem_CAPS_static Inequality(IdAndName, IdAndName)

Returns a value that indicates whether the values of two specified IdAndName objects are not equal (!=).

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

Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top