Export (0) Print
Expand All

ConstructShellTargetUrl Method (String, String, String)

HealthVault
Constructs a URL to be redirected to via the HealthVault URL redirector.

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

public static Uri ConstructShellTargetUrl(
	string targetLocation,
	string targetQuery,
	string actionUrlQueryString
)

Parameters

targetLocation
Type: System..::..String
A known constant indicating the internal HealthVault service Shell location to redirect to. See Shell redirect interface.
targetQuery
Type: System..::..String
The query string value to pass to the URL to which redirection is taking place.
actionUrlQueryString
Type: System..::..String
The query string parameters passed to the calling application action URL after the target action is completed in the Shell.

Return Value

The constructed URL.

The targetLocation will be passed as the target parameter value to the redirector URL. The targetQuery will be URL encoded and passed as the targetqs parameter value to the redirector URL. The actionUrlQueryString will be URL encoded and passed as the actionqs parameter value to the redirector URL.

ExceptionCondition
System..::..UriFormatException If the specific target location causes an improper URL to be constructed.
Show:
© 2014 Microsoft