logo
logo

Class Link

Represents a link in a HAL resource.

Inheritance
System.Object
Link
Namespace: Stylelabs.M.Base.Web.Api.Models
Assembly: Stylelabs.M.Sdk.WebClient.dll
public class Link : object

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)
Parameters
Type Name Description
System.String uri

The initial Uri.

Initializes a new instance of the Link class.

Declaration
public Link(string uri, string title)
Parameters
Type Name Description
System.String uri

The initial Uri.

System.String title

The initial Title.

Initializes a new instance of the Link class.

Declaration
public Link(string uri, string title, bool templated)
Parameters
Type Name Description
System.String uri

The initial Uri.

System.String title

The initial Title.

System.Boolean templated

The initial value of Template.

Initializes a new instance of the Link class.

Declaration
public Link(string uri, string title, string[] filenameProperties)
Parameters
Type Name Description
System.String uri

The initial Uri.

System.String title

The initial Title.

System.String[] filenameProperties

The file properties

Initializes a new instance of the Link class.

Declaration
public Link(Uri uri)
Parameters
Type Name Description
Uri uri

The initial Uri.

Initializes a new instance of the Link class.

Declaration
public Link(Uri uri, string title)
Parameters
Type Name Description
Uri uri

The initial Uri.

System.String title

The initial Title.

Initializes a new instance of the Link class.

Declaration
public Link(Uri uri, string title, bool templated)
Parameters
Type Name Description
Uri uri

The initial Uri.

System.String title

The initial Title.

System.Boolean templated

The initial value of Template.

Properties

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

Declaration
public string[] FileNameProperties { get; set; }
Property Value
Type Description
System.String[]

The URI.

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

Declaration
public bool Template { get; set; }
Property Value
Type Description
System.Boolean

true if the URI is a template; otherwise, false.

Gets or sets the title that describes this link.

Declaration
public string Title { get; set; }
Property Value
Type Description
System.String

A descriptive title for this link.

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

Declaration
public string Uri { get; set; }
Property Value
Type Description
System.String

The URI.

Operators

Declaration
public static implicit operator Link(string uri)
Parameters
Type Name Description
System.String uri
Returns
Type Description
Link
Declaration
public static implicit operator Link(Uri uri)
Parameters
Type Name Description
Uri uri
Returns
Type Description
Link

Extension Methods

Can we improve this article ? Provide feedback