Question​Answer Class

Definition

Represents a question and answer stored as a health record item.

public class QuestionAnswer : Microsoft.Health.HealthRecordItem
Inheritance
QuestionAnswer

Inherited Members

Microsoft.Health.HealthRecordItem

Constructors

Question​Answer()

Creates a new instance of the QuestionAnswer class with default values.

Question​Answer(​Health​Service​Date​Time, ​Codable​Value)

Creates a new instance of the QuestionAnswer class with the specified date and time and the question that was asked.

Question​Answer(​Health​Service​Date​Time, ​Codable​Value, ​IList<​Codable​Value>, ​IList<​Codable​Value>)

Creates a new instance of the QuestionAnswer class with the specified date and time and the question that was asked.

Fields

Type​Id

The unique identifier for the item type.

Properties

Answer

Gets a collection of the recorded answer(s) to the question.

Answer​Choice

Gets a collection of the possible answers to the question.

Question

Gets or sets the question that was asked.

When

Gets or sets the date and time of the question was asked.

Methods

Parse​Xml(​IX​Path​Navigable)

Populates this question/answer instance from the data in the XML.

To​String()

Gets a string representation of the question/answer.

Write​Xml(​Xml​Writer)

Writes the question/answer data to the specified XmlWriter.