UtilWebRedirectUri(Uri, Int32, String) Method
Redirects an Url that points to other Url.
Namespace: DevCase.Core.Networking.CommonAssembly: 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
)
Public Shared Function RedirectUri (
uri As Uri,
maxCount As Integer,
userAgent As String
) As Uri
Dim uri As Uri
Dim maxCount As Integer
Dim userAgent As String
Dim returnValue As Uri
returnValue = UtilWeb.RedirectUri(uri,
maxCount, userAgent)
public:
static Uri^ RedirectUri(
Uri^ uri,
int maxCount,
String^ userAgent
)
static member RedirectUri :
uri : Uri *
maxCount : int *
userAgent : string -> Uri
No code example is currently available or this language may not be supported.
- 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.
Uri
The redirected Url.
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.
This is a code example.
No code example is currently available or this language may not be supported.
Dim uri As New Uri("http://goo.gl/PsCZN4")
Dim userAgent As String = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2"
Dim resultUri As Uri = RedirectUri(uri, 0, userAgent)
Console.WriteLine(resultUri.AbsoluteUri)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.