Compartilhar via


Uri.UriSchemeNews 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)

Syntax

'Declaration
Public Shared ReadOnly UriSchemeNews As String
public static readonly string UriSchemeNews

Examples

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

Dim address6 As Uri = New Uri("news:123456@contoso.com")
If address6.Scheme = Uri.UriSchemeNews Then
  outputBlock.Text &= "Uri is an Internet news group"
  outputBlock.Text &= vbCrLf
End If
Uri address6 = new Uri("news:123456@contoso.com");
if (address6.Scheme == Uri.UriSchemeNews)
    outputBlock.Text += "Uri is an Internet news group\n"; 
Uri address4 = new Uri("news:123456@contoso.com");
if (address4.Scheme == Uri.UriSchemeNews)
    Console.WriteLine("Uri is an Internet news group");

Version Information

Silverlight

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

Platforms

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

See Also

Reference