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
‘선언
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
- 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.
.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.