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
声明
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
- 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.
Remarks
This method does not throw a ValidationException if the specified ID does not resolve to a Field.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.