Uri.UriSchemeGopher 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定通过 Gopher 协议访问 URI。 此字段为只读。
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