C# Uri UriSchemeNews

Description

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

Syntax

Uri.UriSchemeNews has the following syntax.


public static readonly string UriSchemeNews

Example

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


//from   w w  w.  j av  a 2s .  c  o  m
using System;
public class MainClass{
  public static void Main(String[] argv){  
    Uri address4 = new Uri("news:123456@java2s.com");
    if (address4.Scheme == Uri.UriSchemeNews)
        Console.WriteLine("Uri is an Internet news group");

  }
}
    

The code above generates the following result.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version