Uri.UriSchemeNntp フィールド

定義

URI がインターネット ニュース グループであり、ネットワーク ニュース トランスポート プロトコル (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 = 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 解析エラーが修正されました。

適用対象