Uri.UriSchemeNntp 字段

定义

指定 URI 是 Internet 新闻组,而且可以通过 Network 新闻传输协议 (NNTP) 进行访问。 此字段为只读。

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

字段值

示例

以下示例创建 一个 Uri 实例,并确定方案是否为 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");
let address5 = Uri "nntp://news.contoso.com/123456@contoso.com"
if address5.Scheme = Uri.UriSchemeNntp then
    printfn "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

注解

已更正.NET Framework版本 1.1 中的 NNTP Uri 分析错误。

适用于