Export (0) Print
Expand All

ConstructShellTargetUrl Method (HttpContext, 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(
	HttpContext context,
	string targetLocation,
	string targetQuery
)

Parameters

context
Type: System.Web..::..HttpContext
The current request context.
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.

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.

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