Class Link
Represents a link in a HAL resource.
Inheritance
Namespace: StylelabsStylelabs.MStylelabs.M.BaseStylelabs.M.Base.WebStylelabs.M.Base.Web.ApiModels
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
public class Link
Constructors
Link()
Initializes a new instance of the Link class.
Declaration
public Link()
Link(string, string, bool)
Initializes a new instance of the Link class.
Declaration
public Link(string uri, string title, bool templated)
Parameters
Type | Name | Description |
---|---|---|
string | uri |
The initial Uri. |
string | title |
The initial Title. |
bool | templated |
The initial value of Template. |
Link(string, string, string[])
Initializes a new instance of the Link class.
Declaration
public Link(string uri, string title, string[] filenameProperties)
Parameters
Type | Name | Description |
---|---|---|
string | uri |
The initial Uri. |
string | title |
The initial Title. |
string | filenameProperties |
The file properties. |
Link(string, string)
Initializes a new instance of the Link class.
Declaration
public Link(string uri, string title)
Parameters
Link(string)
Initializes a new instance of the Link class.
Declaration
public Link(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri |
The initial Uri. |
Link(Uri, string, bool)
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. |
string | title |
The initial Title. |
bool | templated |
The initial value of Template. |
Link(Uri, string)
Initializes a new instance of the Link class.
Declaration
public Link(Uri uri, string title)
Parameters
Link(Uri)
Initializes a new instance of the Link class.
Declaration
public Link(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri |
The 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
Type | Description |
---|---|
string |
The URI. |
Template
Gets or sets a value indicating whether the contained URI is a template.
Declaration
public bool Template { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Title
Gets or sets the title that describes this link.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
A 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
Type | Description |
---|---|
string |
The URI. |
Operators
implicit operator Link(string)
Operator.
Declaration
public static implicit operator Link(string uri)
Parameters
Type | Name | Description |
---|---|---|
string | uri |
The uri. |
Returns
Type | Description |
---|---|
Link |
implicit operator Link(Uri)
Operator.
Declaration
public static implicit operator Link(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri |
The uri. |
Returns
Type | Description |
---|---|
Link |