This documentation is archived and is not being maintained.

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)

public:
bool TryGetByName(
	String^ linkTypeReferenceName, 
	[OutAttribute] WorkItemLinkType^% linkType
)

Parameters

linkTypeReferenceName
Type: System::String

The reference name of the desired WorkItemLinkType.

linkType
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemLinkType%

The WorkItemLinkType object that has the specified reference name. Passed out by reference.

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.

Show: