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
'Déclaration
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
- id
Type: System.Int32
The ID of the Field.
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
- 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.