Codable​Value 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

Codable​Value()

Constructs a CodableValue with empty values.

Codable​Value(​String)

Constructs a CodableValue with an initial value for the Text.

Codable​Value(​String, ​Coded​Value)

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

Codable​Value(​String, ​Vocabulary​Item)

Constructs a CodableValue based on display value and a VocabularyItem.

Codable​Value(​String, ​String, ​Vocabulary​Key)

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

Codable​Value(​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

Is​Read​Only

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(​Coded​Value)

Adds an item to the code list.

Add(​Vocabulary​Item)

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(​Coded​Value)

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

Copy​To(​Coded​Value[], ​Int32)

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

Get​Enumerator()

Returns an enumerator that iterates through the collection.

Index​Of(​Coded​Value)

Determines the index of a specific item

Insert(​Int32, ​Coded​Value)

Inserts an code item at the specified index.

Parse​Xml(​XPath​Navigator)

Populates the data for the vocabulary entry from the XML.

Remove(​Coded​Value)

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

Remove​At(​Int32)

Removes a code item at the specified index.

To​String()

Gets the string representation of a codable value.

Write​Xml(​String, ​Xml​Writer)

Writes the vocabulary entry to the specified XML writer.

Explicit Interface Implementations

I​Enumerable.​Get​Enumerator()

Returns an enumerator that iterates through the code list.