This documentation is archived and is not being maintained.

FieldCollection::GetById Method

Gets the Field in this collection that has the specified ID.

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

public:
Field^ GetById(
	int id
)

Parameters

id
Type: System::Int32

The ID of the Field.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client::Field
The Field that has the specified ID.

ExceptionCondition
ValidationException

The specified ID does not resolve to a Field in this collection.

This method throws a ValidationException if the specified ID does not resolve to a Field.

Show: