Uri.UriSchemeNews Uri.UriSchemeNews Uri.UriSchemeNews Uri.UriSchemeNews 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 ^ UriSchemeNews;
public static readonly string UriSchemeNews;
 staticval mutable UriSchemeNews : string
Public Shared ReadOnly UriSchemeNews As String 

字段值

示例

下面的示例创建一个Uri实例, 并确定该方案是否UriSchemeNews为。The following example creates a Uri instance and determines whether the scheme is UriSchemeNews.

Uri^ address4 = gcnew Uri( "news:123456@contoso.com" );
if ( address4->Scheme == Uri::UriSchemeNews )
{
   Console::WriteLine( "Uri is an Internet news group" );
}
Uri address4 = new Uri("news:123456@contoso.com");
if (address4.Scheme == Uri.UriSchemeNews)
    Console.WriteLine("Uri is an Internet news group");
Dim address4 As New Uri("news:123456@contoso.com")
If address4.Scheme = Uri.UriSchemeNews Then
    Console.WriteLine("Uri is an Internet news group")
End If 

适用于