Class Link
Represents a link in a HAL resource.
Inheritance
Namespace: Stylelabs.M.Base.Web.Api.Models
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
public class Link : object
Constructors
Link()
Initializes a new instance of the Link class.
Declaration
public Link()
Link(String)
Initializes a new instance of the Link class.
Declaration
public Link(string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The initial Uri. |
Link(String, String)
Initializes a new instance of the Link class.
Declaration
public Link(string uri, string title)
Parameters
Link(String, String, Boolean)
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. |
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 |
---|---|---|
System.String | uri | The initial Uri. |
System.String | title | The initial Title. |
System.String[] | filenameProperties | The file properties. |
Link(Uri)
Initializes a new instance of the Link class.
Declaration
public Link(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The initial Uri. |
Link(Uri, String)
Initializes a new instance of the Link class.
Declaration
public Link(Uri uri, string title)
Parameters
Link(Uri, String, Boolean)
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
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 |
---|---|
System.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 |
---|---|
System.Boolean |
|
Title
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. |
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 |
---|---|
System.String | The URI. |
Operators
Implicit(String to Link)
Operator.
Declaration
public static implicit operator Link(string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The uri. |
Returns
Type | Description |
---|---|
Link |
Implicit(Uri to Link)
Operator.
Declaration
public static implicit operator Link(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The uri. |
Returns
Type | Description |
---|---|
Link |
Extension Methods
Can we improve this article ? Provide feedback