RelationExtension GetLink Method (IEnumerable Link , String)DocuWare Platform .NET API
Gets the link by its name.

Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient (in DocuWare.RestClient.dll) Version: 6.5.0.0 (6.5.0.5648)
Syntax

public static Link GetLink(
	this IEnumerable<Link> links,
	string relationName
)

Parameters

links
Type: OnlineSystem.Collections.Generic IEnumerable Link 
The links.
relationName
Type: OnlineSystem String
Name of the relation.

Return Value

Type: Link
The link, if it exists; null otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIEnumerable Link . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also