Uri.UriSchemeNntp Pole

Definice

Určuje, že identifikátor URI je internetová skupina zpráv a je přístupný prostřednictvím protokolu NNTP (Network News Transport Protocol). Toto pole je jen ke čtení.

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

Hodnota pole

Příklady

Následující příklad vytvoří Uri instanci a určí, zda je UriSchemeNntpschéma .

Uri^ address5 = gcnew Uri( "nntp://news.contoso.com/123456@contoso.com" );
if ( address5->Scheme == Uri::UriSchemeNntp )
{
   Console::WriteLine( "Uri is nntp protocol" );
}
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

Poznámky

Chyby analýzy NNTP Uri v rozhraní .NET Framework verze 1.1 byly opraveny.

Platí pro