Partager via


Uri.UriSchemeGopher Champ

Définition

Spécifie que l'URI est accessible par l'intermédiaire du protocole Gopher. Ce champ est en lecture seule.

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

Valeur de champ

Exemples

L’exemple suivant crée un Uri instance et détermine si le schéma est UriSchemeGopher.

Uri^ address6 = gcnew Uri( "gopher://example.contoso.com/" );
if ( address6->Scheme == Uri::UriSchemeGopher )
{
   Console::WriteLine( "Uri is Gopher protocol" );
}
Uri address6 = new Uri("gopher://example.contoso.com/");
if (address6.Scheme == Uri.UriSchemeGopher)
    Console.WriteLine("Uri is Gopher protocol");
let address6 = Uri "gopher://example.contoso.com/"
if address6.Scheme = Uri.UriSchemeGopher then
    printfn "Uri is Gopher protocol"
Dim address6 As New Uri("gopher://example.contoso.com/")
If address6.Scheme = Uri.UriSchemeGopher Then
    Console.WriteLine("Uri is Gopher protocol")
End If

S’applique à