語言

Uri.UriSchemeGopher 欄位

定義

規定 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 = 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

適用於