Uri.UriSchemeGopher 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 URI 要透過 Gopher 通訊協定存取。 此欄位為唯讀。
public: static initonly System::String ^ UriSchemeGopher;
public static readonly string UriSchemeGopher;
staticval mutable UriSchemeGopher : string
Public Shared ReadOnly UriSchemeGopher As String
欄位值
範例
下列範例會 Uri 建立 實例,並判斷配置是否為 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