[This is preliminary documentation and is subject to change.]

Represents a link, to be sent as part of a resource in a RESTful API.

Inheritance Hierarchy

System.ObjectSystem.ObjectSystem::Object
  Simple.Web.Links.LinkSimple.Web.Links.LinkSimple::Web::Links::Link

Namespace: Simple.Web.LinksSimple.Web.LinksSimple::Web::Links
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

[DataContract(Name = "link")]

public class Link

VB

<DataContract(Name := "link")> _

Public Class Link

C++

[DataContract(Name = L"link")]

public ref class Link

The LinkLinkLink type exposes the following members.

Constructors

Name Description
Link(Type, string, string, string, string)New(Type, String, String, String, String)Link(Type^, String^, String^, String^, String^) Initializes a new instance of the LinkLinkLink class.
Top

Properties

Name Description
HrefHrefHref Gets the href: the URI pointing to the resource/handler.
RelRelRel Gets the rel: the relationship of the link to the resource it is included with.
TitleTitleTitle Gets the title: a human-readable name for the link.
TypeTypeType Gets the type: the Content-Type returned by the link.
Top

Methods

Name Description
Equals(object)Equals(Object)Equals(Object^) Determines whether the specified Object is equal to the current Object. (Inherited from ObjectObjectObject.)
Finalize()Finalize()Finalize() Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ObjectObjectObject.)
GetHandlerType()GetHandlerType()GetHandlerType() Gets the type of the handler.
GetHashCode()GetHashCode()GetHashCode() Serves as a hash function for a particular type. (Inherited from ObjectObjectObject.)
GetType()GetType()GetType() Gets the Type of the current instance. (Inherited from ObjectObjectObject.)
MemberwiseClone()MemberwiseClone()MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from ObjectObjectObject.)
ToString()ToString()ToString() Returns a string that represents the current object. (Inherited from ObjectObjectObject.)
Top

See Also

Simple.Web.LinksSimple.Web.LinksSimple::Web::Links Namespace