GetServiceDefinition Method (HealthServiceConnection, ServiceInfoSections)

Gets information about the HealthVault service corresponding to the specified categories.

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

virtual ServiceInfo^ GetServiceDefinition(
	HealthServiceConnection^ connection, 
	ServiceInfoSections responseSections


Type: Microsoft.Health..::..HealthServiceConnection
The connection to use to perform the operation.
Type: Microsoft.Health..::..ServiceInfoSections
A bitmask of one or more ServiceInfoSections which specify the categories of information to be populated in the ServiceInfo.

Return Value

A ServiceInfo instance that contains some or all of the service version, SDK assemblies versions and URLs, method information, and so on, depending on which information categories were specified.

Gets the latest information about the HealthVault service. Depending on the specified responseSections, this will include some or all of:
- The version of the service.
- The SDK assembly URLs.
- The SDK assembly versions.
- The SDK documentation URL.
- The URL to the HealthVault Shell.
- The schema definition for the HealthVault method's request and response.
- The common schema definitions for types that the HealthVault methods use.
- Information about all available HealthVault instances.
Retrieving only the sections you need will give a faster response time than downloading the full response.

System..::..ArgumentNullExceptionconnection is null.
Microsoft.Health..::..HealthServiceException The HealthVault service returned an error.
System..::..UriFormatException One or more URL strings returned by HealthVault is invalid.