次の方法で共有


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

'Declaration
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

See Also

Reference

FieldDefinitionCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace