Partager via


FieldDefinitionCollection.TryGetByName Method

Gets the FieldDefinition object that has the specified name.

Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)

Syntax

'Declaration
Public Function TryGetByName ( _
    name As String _
) As FieldDefinition
public FieldDefinition TryGetByName(
    string name
)
public:
FieldDefinition^ TryGetByName(
    String^ name
)
member TryGetByName : 
        name:string -> FieldDefinition
public function TryGetByName(
    name : String
) : FieldDefinition

Parameters

  • name
    Type: System.String

    The name of the FieldDefinition object to get.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition
The FieldDefinition object that is associated with the specified name.

Remarks

Does not throw an exception if not found.

.NET Framework Security

See Also

Reference

FieldDefinitionCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace