FieldDefinitionCollection.TryGetById Method
Gets the FieldDefinition object that has the specified ID.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaração
Public Function TryGetById ( _
id As Integer _
) As FieldDefinition
public FieldDefinition TryGetById(
int id
)
public:
FieldDefinition^ TryGetById(
int id
)
member TryGetById :
id:int -> FieldDefinition
public function TryGetById(
id : int
) : FieldDefinition
Parameters
- id
Type: System.Int32
The ID of the FieldDefinition object of interest.
Return Value
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition
The FieldDefinition object that is associated with the specified ID.
Remarks
Does not throw an exception if not found.
.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.