Export (0) Print
Expand All

GetServiceDefinition Method (HealthServiceConnection, DateTime)

HealthVault
Gets information about the HealthVault service only if it has been updated since the specified update time.

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

public static ServiceInfo GetServiceDefinition(
	HealthServiceConnection connection,
	DateTime lastUpdatedTime
)

Parameters

connection
Type: Microsoft.Health..::..HealthServiceConnection
The connection to use to perform the operation.
lastUpdatedTime
Type: System..::..DateTime
The time of the last update to an existing cached copy of ServiceInfo.

Return Value

If there were updates to the service information since the specified lastUpdatedTime, a ServiceInfo instance that contains the service version, SDK assemblies versions and URLs, method information, and so on. Otherwise, if there were no updates, returns null.

Gets the latest information about the HealthVault service, if there were updates since the specified lastUpdatedTime. If there were no updates the method returns null. This includes:
- 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.

ExceptionCondition
Microsoft.Health..::..HealthServiceException The HealthVault service returned an error.
System..::..UriFormatException One or more URL strings returned by HealthVault is invalid.
Show:
© 2014 Microsoft