Uri.UriSchemeNews 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 ^ UriSchemeNews;
public static readonly string UriSchemeNews;
 staticval mutable UriSchemeNews : string
Public Shared ReadOnly UriSchemeNews As String 

Hodnota pole

Příklady

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

Uri^ address4 = gcnew Uri( "news:123456@contoso.com" );
if ( address4->Scheme == Uri::UriSchemeNews )
{
   Console::WriteLine( "Uri is an Internet news group" );
}
Uri address4 = new Uri("news:123456@contoso.com");
if (address4.Scheme == Uri.UriSchemeNews)
    Console.WriteLine("Uri is an Internet news group");
let address4 = Uri "news:123456@contoso.com"
if address4.Scheme = Uri.UriSchemeNews then
    printfn $"Uri is an Internet news group"
Dim address4 As New Uri("news:123456@contoso.com")
If address4.Scheme = Uri.UriSchemeNews Then
    Console.WriteLine("Uri is an Internet news group")
End If

Platí pro