閱讀英文

共用方式為


Uri.UriSchemeNntp 欄位

定義

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

C#
public static readonly string UriSchemeNntp;

欄位值

範例

下列範例會 Uri 建立 實例,並判斷配置是否為 UriSchemeNntp

C#
Uri address5 = new Uri("nntp://news.contoso.com/123456@contoso.com");
if (address5.Scheme == Uri.UriSchemeNntp)
    Console.WriteLine("Uri is nntp protocol");

備註

.NET Framework 1.1 版中的 NNTP Uri 剖析錯誤已修正。

適用於

產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1