Skip to content

LinkAttribute

Jim Schaad edited this page Jul 3, 2017 · 1 revision

Description

This class represents a single name, value pair for a link attribute as represented by the CORE Link Format document. Link attributes include things such as 'Resource Types', 'Interface Descriptors' and 'Content Types'.

Link attributes are contained in a dictionary associated with a resource.

Currently, while any object can be set as an attribute, only Boolean, Int32 and String values will be correctly represented.

Properties

IntValue: Return the value as an integer. If the value is not an integer, return a value of -1.

Name: Retrieve the name of the link attribute.

**StringValue:: Retrieve the value as a string. If the value is not a string, return a value of null.

Value: Return the value of the link attribute.

Methods

Serialize: Write the name, value pair out to the string builder.

ToString: Return the name, value pair as a string.

Clone this wiki locally