CodableValue Class

Definition

Represents the value and code of an entry in the HealthVault vocabulary store.

public class CodableValue : Microsoft.Health.ItemTypes.HealthRecordItemData, System.Collections.Generic.ICollection<Microsoft.Health.ItemTypes.CodedValue>, System.Collections.Generic.IEnumerable<Microsoft.Health.ItemTypes.CodedValue>, System.Collections.Generic.IList<Microsoft.Health.ItemTypes.CodedValue>
Inheritance
Implements

Constructors

CodableValue()

Constructs a CodableValue with empty values.

CodableValue(String)

Constructs a CodableValue with an initial value for the Text.

CodableValue(String, CodedValue)

Constructs a CodableValue with an initial value for the Text and the specified code.

CodableValue(String, VocabularyItem)

Constructs a CodableValue based on display value and a VocabularyItem.

CodableValue(String, String, VocabularyKey)

Creates a new instance of the CodableValue class with the specified text, code value, and vocabulary key.

CodableValue(String, String, String, String, String)

Creates a new instance of the CodableValue class with the specified text, code value, vocabulary name, family, and version.

Properties

Count

Gets the number of code items

IsReadOnly

Gets a value indicating whether the code item list is read-only.

Item[Int32]

Gets or sets the element at the specified index.

Text

Gets or sets the value of the codable value.

Methods

Add(CodedValue)

Adds an item to the code list.

Add(VocabularyItem)

Encodes a VocabularyItem as a CodedValue and adds it to the list of coded values.

Clear()

Removes all items from the code item list

Contains(CodedValue)

Gets a value indicating whether the code item list contains a specific code.

CopyTo(CodedValue[], Int32)

Copies the elements of the code item list to an array, starting at a particular array index.

GetEnumerator()

Returns an enumerator that iterates through the collection.

IndexOf(CodedValue)

Determines the index of a specific item

Insert(Int32, CodedValue)

Inserts an code item at the specified index.

ParseXml(XPathNavigator)

Populates the data for the vocabulary entry from the XML.

Remove(CodedValue)

Removes the first occurrence of this code item from the code item list.

RemoveAt(Int32)

Removes a code item at the specified index.

ToString()

Gets the string representation of a codable value.

WriteXml(String, XmlWriter)

Writes the vocabulary entry to the specified XML writer.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the code list.