Uri.UriSchemeHttps 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 URI 要透過安全超文字傳輸協定 (Secure Hypertext Transfer Protocol,HTTPS) 存取。 此欄位為唯讀。
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