Uri.UriSchemeHttps 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定通过安全超文本传输协议 (HTTPS) 访问 URI。 此字段为只读。
public: static initonly System::String ^ UriSchemeHttps;
public static readonly string UriSchemeHttps;
staticval mutable UriSchemeHttps : string
Public Shared ReadOnly UriSchemeHttps As String
字段值
示例
以下示例创建 一个 Uri 实例,并确定方案是否为 UriSchemeHttps。
Uri^ address8 = gcnew Uri( "https://example.contoso.com" );
if ( address8->Scheme == Uri::UriSchemeHttps )
{
Console::WriteLine( "Uri is Https protocol." );
}
Uri address8 = new Uri("https://example.contoso.com");
if (address8.Scheme == Uri.UriSchemeHttps)
Console.WriteLine("Uri is Https protocol.");
let address8 = Uri "https://example.contoso.com"
if address8.Scheme = Uri.UriSchemeHttps then
printfn "Uri is Https protocol."
Dim address8 As New Uri("https://example.contoso.com")
If address8.Scheme = Uri.UriSchemeHttps Then
Console.WriteLine("Uri is Https protocol.")
End If