Compartilhar via


WorkItemLinkTypeCollection.TryGetByName Method

Attempts to get a WorkItemLinkType in this collection that has the specified reference name. Passes out the WorkItemLinkType object in the linkType parameter.

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

Syntax

'Declaração
Public Function TryGetByName ( _
    linkTypeReferenceName As String, _
    <OutAttribute> ByRef linkType As WorkItemLinkType _
) As Boolean
public bool TryGetByName(
    string linkTypeReferenceName,
    out WorkItemLinkType linkType
)
public:
bool TryGetByName(
    String^ linkTypeReferenceName, 
    [OutAttribute] WorkItemLinkType^% linkType
)
member TryGetByName : 
        linkTypeReferenceName:string * 
        linkType:WorkItemLinkType byref -> bool 
public function TryGetByName(
    linkTypeReferenceName : String, 
    linkType : WorkItemLinkType
) : boolean

Parameters

Return Value

Type: System.Boolean
True if a WorkItemLinkType that is associated to the reference name was found and passed out through the linkType parameter; otherwise, false.

.NET Framework Security

See Also

Reference

WorkItemLinkTypeCollection Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace