Uri.UriSchemeNews Field

May 11, 2014

Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). This field is read-only.

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

public static readonly string UriSchemeNews

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


Uri address6 = new Uri("news:123456@contoso.com");
if (address6.Scheme == Uri.UriSchemeNews)
    outputBlock.Text += "Uri is an Internet news group\n"; 


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft