Uri.UriSchemeNntp Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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 Shared ReadOnly UriSchemeNntp As String
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.

Dim address7 As Uri = New Uri("nntp://news.contoso.com/123456@contoso.com")
If address7.Scheme = Uri.UriSchemeNntp Then
  outputBlock.Text &= "Uri is nntp protocol"
  outputBlock.Text &= vbCrLf
End If
Uri address7 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address7.Scheme == Uri.UriSchemeNntp)
    outputBlock.Text += "Uri is nntp protocol\n"; 
Uri address5 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address5.Scheme == Uri.UriSchemeNntp)
    Console.WriteLine("Uri is nntp protocol");

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also