Windows Dev Center

Uri.UriSchemeNntp Field

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 UriSchemeNntp

The NNTP Uri parsing errors in .NET Framework version 1.1 have been corrected.

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


Uri address7 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address7.Scheme == Uri.UriSchemeNntp)
    outputBlock.Text += "Uri is nntp protocol\n"; 


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft