Uri.UriSchemeHttps 欄位

定義

規定 URI 是透過安全超文本傳輸協定(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 = 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

適用於