Share via


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)

Syntax

'Declaration
Public Function TryGetById ( _
    id As Integer _
) As Field
public Field TryGetById(
    int id
)
public:
Field^ TryGetById(
    int id
)
member TryGetById : 
        id:int -> Field
public function TryGetById(
    id : int
) : Field

Parameters

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Field
The field that has the specified ID. Null if not found.

Remarks

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

.NET Framework Security

See Also

Reference

FieldCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace