Langue

Uri.UriSchemeNntp Champ

Définition

Spécifie que l’URI est un groupe d’actualités Internet et est accessible via le protocole NNTP (Network News Transport Protocol). Ce champ est en lecture seule.

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

Valeur de champ

Exemples

L’exemple suivant crée une Uri instance et détermine si le schéma est 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

Remarques

Les erreurs d’analyse NNTP Uri dans .NET Framework version 1.1 ont été corrigées.

S’applique à