UtilWebRedirectUri(Uri, Int32, String) Method

Redirects an Url that points to other Url.

Definition

Namespace: DevCase.Core.Networking.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Uri RedirectUri(
	Uri uri,
	int maxCount,
	string userAgent
)

Parameters

uri  Uri
The Uri to redirect.
maxCount  Int32
The maximum amount of times to redirect the resulting Uris after the first redirection.
userAgent  String
The user agent to use for the query.

Return Value

Uri
The redirected Url.

Remarks

Url redirection, also called Url forwarding, is a World Wide Web technique for making a web page available under more than one Url address.

When a web browser attempts to open a Url that has been redirected, a page with a different Url is opened.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also