RegisterApplicationSpecificHandler Method (Guid, String, Type)

HealthVault
Registers a class as the handler for the application specific health record item type with the specific application ID and subtype tag.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)

public static void RegisterApplicationSpecificHandler(
	Guid applicationId,
	string subtypeTag,
	Type applicationSpecificHandlerClass
)

Parameters

applicationId
Type: System..::..Guid
The application identifier for the application specific data that the specified type will handle.
subtypeTag
Type: System..::..String
The subtype tag for the application specific data that the specified type will handle.
applicationSpecificHandlerClass
Type: System..::..Type
The .NET type that handles parsing of the application specific data for the specified application ID and subtype tag.

ExceptionCondition
System..::..ArgumentException If applicationId is Empty, or subtypeTag is null or empty, or if applicationSpecificHandlerClass does not derive from ApplicationSpecific.
System..::..ArgumentNullException If applicationSpecificHandlerClass is null.
Microsoft.Health..::..TypeHandlerAlreadyRegisteredException If a type is already registered to handle the application specific data for the specified applicationId and subtypeTag.
Show: