UriSchemeHttp Field

Uri.UriSchemeHttp Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.

Namespace:  System
Assembly:  System (in System.dll)

public static readonly string UriSchemeHttp

The following example creates a Uri instance and determines whether the scheme is UriSchemeHttp.

Uri address3 = new Uri("http://www.contoso.com/index.htm#search");
if (Uri.CheckSchemeName(address3.Scheme))
    outputBlock.Text += "address has a valid scheme name\n";
    outputBlock.Text += "address does not has a valid scheme name\n";

if (address3.Scheme == Uri.UriSchemeHttp)
    outputBlock.Text += "Uri is HTTP type\n";

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft