共用方式為


Uri.UriSchemeNews 欄位

定義

指定 URI 為網際網路新聞群組,並且要透過 Network News Transport Protocol (NNTP) 存取。 此欄位為唯讀。

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

欄位值

範例

下列範例會 Uri 建立 實例,並判斷配置是否為 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");
let address4 = Uri "news:123456@contoso.com"
if address4.Scheme = Uri.UriSchemeNews then
    printfn $"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

適用於