Uri.UriSchemeHttp Field
.NET Framework (current version)
Specifies that the URI is accessed through the Hypertext Transfer Protocol (HTTP). This field is read-only.
Assembly: System (in System.dll)
The following example creates a Uri instance and determines whether the scheme is UriSchemeHttp.
Dim address1 As New Uri("http://www.contoso.com/index.htm#search") Console.WriteLine("address 1 {0} a valid scheme name", IIf(Uri.CheckSchemeName(address1.Scheme), " has", " does not have")) 'TODO: For performance reasons this should be changed to nested IF statements If address1.Scheme = Uri.UriSchemeHttp Then Console.WriteLine("Uri is HTTP type") End If Console.WriteLine(address1.HostNameType)
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: