Uri.UriSchemeNntp Feld

Definition

Gibt an, dass der URI eine Internetnachrichtengruppe ist und über das Network News Transport Protocol (NNTP) aufgerufen wird. Dieses Feld ist schreibgeschützt.

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

Feldwert

Beispiele

Im folgenden Beispiel wird eine Uri Instanz erstellt und bestimmt, ob das Schema ist 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

Hinweise

Die NNTP-Uri Analysefehler in .NET Framework Version 1.1 wurden korrigiert.

Gilt für: