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

Initializes a new instance of the CanonicalAttributeCanonicalAttributeCanonicalAttribute class.

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

Syntax

C#

public CanonicalAttribute(

Type modelType,

string uriTemplate

)

VB

Public Sub New( _

modelType As Type, _

uriTemplate As String _

)

C++

public:

CanonicalAttribute(

Type^ modelType,

String^ uriTemplate

)

Parameters

modelType
Type: System.TypeSystem.TypeSystem::Type
Type of the model.
uriTemplate

Remarks

The URI template works in reverse here. The {X} variables will be replaced with the relevant properties from an instance of the model to create an actual URI to be returned to the client.

See Also

CanonicalAttributeCanonicalAttributeCanonicalAttribute Class
Simple.Web.LinksSimple.Web.LinksSimple::Web::Links Namespace