Partager via


FieldCollection.Contains Method (Int32)

Checks whether this collection contains the Field that is specified by its ID.

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

Syntax

'Déclaration
Public Function Contains ( _
    id As Integer _
) As Boolean
public bool Contains(
    int id
)
public:
bool Contains(
    int id
)
member Contains : 
        id:int -> bool 
public function Contains(
    id : int
) : boolean

Parameters

Return Value

Type: System.Boolean
True if this collection contains the specified Field; otherwise, false.

Exceptions

Exception Condition
ValidationExcepion

The index parameter is out of range.

.NET Framework Security

See Also

Reference

FieldCollection Class

Contains Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace