Uri.UriSchemeNntp Uri.UriSchemeNntp Uri.UriSchemeNntp Uri.UriSchemeNntp Field

定义

指定 URI 是 Internet 新闻组,而且可以通过 Network 新闻传输协议 (NNTP) 进行访问。Specifies that the URI is an Internet news group and is accessed through the Network News Transport Protocol (NNTP). 此字段为只读。This field is read-only.

public: static initonly System::String ^ UriSchemeNntp;
public static readonly string UriSchemeNntp;
 staticval mutable UriSchemeNntp : string
Public Shared ReadOnly UriSchemeNntp As String 

字段值

示例

下面的示例创建Uri实例,并确定是否为方案UriSchemeNntpThe following example creates a Uri instance and determines whether the scheme is UriSchemeNntp.

Uri^ address5 = gcnew Uri( "nntp://news.contoso.com/123456@contoso.com" );
if ( address5->Scheme == Uri::UriSchemeNntp )
{
   Console::WriteLine( "Uri is nntp protocol" );
}
Uri address5 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address5.Scheme == Uri.UriSchemeNntp)
    Console.WriteLine("Uri is nntp protocol");
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 

注解

NNTPUri分析.NET Framework 中的错误版本 1.1 中已经得到更正。The NNTP Uri parsing errors in .NET Framework version 1.1 have been corrected.

适用于