Insulin​Injection Class

Definition

Represents a health record item type that encapsulates an insulin injection.

public class InsulinInjection : Microsoft.Health.HealthRecordItem
Inheritance
InsulinInjection

Inherited Members

Microsoft.Health.HealthRecordItem

Remarks

This class represents any injection unit used to dispense insulin. The injector might or might not have a device component.

Constructors

Insulin​Injection()

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

Insulin​Injection(​Codable​Value, ​Insulin​Injection​Measurement)

Creates a new instance of the InsulinInjection class with the specified insulin type and amount.

Fields

Type​Id

Retrieves the unique identifier for the item type.

Properties

Amount

Gets or sets the amount of insulin.

Device​Id

Gets or sets the identifier for the device.

Insulin​Type

Gets or sets the type of insulin being used in the injector.

Methods

Parse​Xml(​IX​Path​Navigable)

Populates this InsulinInjection instance from the data in the XML.

To​String()

Gets a string representation of the insulin injection item.

Write​Xml(​Xml​Writer)

Writes the insulin injection data to the specified XmlWriter.