Uri.UriSchemeNntp Field

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Field Value

Type: System.String

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 address5 As New Uri("nntp://news.contoso.com/123456@contoso.com")
If address5.Scheme = Uri.UriSchemeNntp Then
    Console.WriteLine("Uri is nntp protocol")
End If 

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: