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)

Syntax

声明
Public Function GetById ( _
    id As Integer _
) As Field
public Field GetById(
    int id
)
public:
Field^ GetById(
    int id
)
member GetById : 
        id:int -> Field 
public function GetById(
    id : int
) : Field

Parameters

Return Value

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

Exceptions

Exception Condition
ValidationException

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

Remarks

This method throws 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