This documentation is archived and is not being maintained.

FieldCollection::TryGetById 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^ TryGetById(
	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. Null if not found.

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

Show: