Class Link

Version: 3.4

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
RequestResponse
public class Link

Constructors

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link()

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(string uri, string title, bool templated)
Parameters
TypeNameDescription
stringuri

The initial Uri.

stringtitle

The initial Title.

booltemplated

The initial value of Template.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(string uri, string title, string[] filenameProperties)
Parameters
TypeNameDescription
stringuri

The initial Uri.

stringtitle

The initial Title.

stringfilenameProperties

The file properties.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(string uri, string title)
Parameters
TypeNameDescription
stringuri

The initial Uri.

stringtitle

The initial Title.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(string uri)
Parameters
TypeNameDescription
stringuri

The initial Uri.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(Uri uri, string title, bool templated)
Parameters
TypeNameDescription
Uriuri

The initial Uri.

stringtitle

The initial Title.

booltemplated

The initial value of Template.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(Uri uri, string title)
Parameters
TypeNameDescription
Uriuri

The initial Uri.

stringtitle

The initial Title.

Initializes a new instance of the Link class.

Declaration
RequestResponse
public Link(Uri uri)
Parameters
TypeNameDescription
Uriuri

The initial Uri.

Properties

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

Declaration
RequestResponse
public string[] FileNameProperties { get; set; }
Property Value
TypeDescription
string

The URI.

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

Declaration
RequestResponse
public bool Template { get; set; }
Property Value
TypeDescription
bool

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

Gets or sets the title that describes this link.

Declaration
RequestResponse
public string Title { get; set; }
Property Value
TypeDescription
string

A descriptive title for this link.

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

Declaration
RequestResponse
public string Uri { get; set; }
Property Value
TypeDescription
string

The URI.

Operators

Operator.

Declaration
RequestResponse
public static implicit operator Link(string uri)
Parameters
TypeNameDescription
stringuri

The uri.

Returns
TypeDescription
Link

Operator.

Declaration
RequestResponse
public static implicit operator Link(Uri uri)
Parameters
TypeNameDescription
Uriuri

The uri.

Returns
TypeDescription
Link

Extension Methods

Do you have some feedback for us?

If you have suggestions for improving this article,