1. Stylelabs.M.Base.Web.Api.Models

Class Link

Represents a link in a HAL resource.

Inheritance

object

Link

Namespace: StylelabsStylelabs.MStylelabs.M.BaseStylelabs.M.Base.WebStylelabs.M.Base.Web.ApiModels

Assembly: Stylelabs.M.Sdk.WebClient.dll

Syntax

public class Link

Constructors

Initializes a new instance of the Link class.

Declaration

public Link()

Initializes a new instance of the Link class.

Declaration

public Link(string uri, string title, bool templated)

Parameters

TypeNameDescription
stringuriThe initial Uri.
stringtitleThe initial Title.
booltemplatedThe initial value of Template.

Initializes a new instance of the Link class.

Declaration

public Link(string uri, string title, string[] filenameProperties)

Parameters

TypeNameDescription
stringuriThe initial Uri.
stringtitleThe initial Title.
stringfilenamePropertiesThe file properties.

Initializes a new instance of the Link class.

Declaration

public Link(string uri, string title)

Parameters

TypeNameDescription
stringuriThe initial Uri.
stringtitleThe initial Title.

Initializes a new instance of the Link class.

Declaration

public Link(string uri)

Parameters

TypeNameDescription
stringuriThe initial Uri.

Initializes a new instance of the Link class.

Declaration

public Link(Uri uri, string title, bool templated)

Parameters

TypeNameDescription
UriuriThe initial Uri.
stringtitleThe initial Title.
booltemplatedThe initial value of Template.

Initializes a new instance of the Link class.

Declaration

public Link(Uri uri, string title)

Parameters

TypeNameDescription
UriuriThe initial Uri.
stringtitleThe initial Title.

Initializes a new instance of the Link class.

Declaration

public Link(Uri uri)

Parameters

TypeNameDescription
UriuriThe initial Uri.

Properties

FileNameProperties

Gets or sets the URI that points to the resource this link refers to.

Declaration

public string[] FileNameProperties { get; set; }

Property Value

TypeDescription
stringThe URI.

Template

Gets or sets a value indicating whether the contained URI is a template.

Declaration

public bool Template { get; set; }

Property Value

TypeDescription
booltrue if the URI is a template; otherwise, false.

Title

Gets or sets the title that describes this link.

Declaration

public string Title { get; set; }

Property Value

TypeDescription
stringA descriptive title for this link.

Uri

Gets or sets the URI that points to the resource this link refers to.

Declaration

public string Uri { get; set; }

Property Value

TypeDescription
stringThe URI.

Operators

Operator.

Declaration

public static implicit operator Link(string uri)

Parameters

TypeNameDescription
stringuriThe uri.

Returns

TypeDescription
Link

Operator.

Declaration

public static implicit operator Link(Uri uri)

Parameters

TypeNameDescription
UriuriThe uri.

Returns

TypeDescription
Link

Extension Methods

TemplateExtensions.Bind(Link, IDictionary<string, string>)

TemplateExtensions.Bind(Link, object)

TemplateExtensions.GetVariableValue(Link, Link, string)

If you have suggestions for improving this article, let us know!