Export (0) Print
Expand All

CreateRequest Method

HealthVault
Provides a wrapper around the XML request for the web service.

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

public virtual HealthServiceRequest CreateRequest(
	string methodName,
	int methodVersion
)

Parameters

methodName
Type: System..::..String
The name of the method of the web-service to call.
methodVersion
Type: System..::..Int32
The version of the method to call.

Return Value

A HealthServiceRequest that acts as a wrapper to XML request for the HealthVault web-service.

This method skips the object model provided by the other methods of this class and acts as a simple wrapper around the XML request for the web service. The caller must provide the parameters in the correct format for the called method and in order to parse the response data.

ExceptionCondition
System..::..ArgumentException The methodName parameter is null or empty.
Show:
© 2015 Microsoft