Uri.UriSchemeHttps Field

Definition

指定 URI 要透過安全超文字傳輸協定 (Secure Hypertext Transfer Protocol,HTTPS) 存取。Specifies that the URI is accessed through the Secure Hypertext Transfer Protocol (HTTPS). 此欄位為唯讀。This field is read-only.

public: static initonly System::String ^ UriSchemeHttps;
public static readonly string UriSchemeHttps;
 staticval mutable UriSchemeHttps : string
Public Shared ReadOnly UriSchemeHttps As String 

Field Value

String

Examples

下列範例會建立 Uri 實例,並判斷配置是否 UriSchemeHttpsThe following example creates a Uri instance and determines whether the scheme is 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.");
Dim address8 As New Uri("https://example.contoso.com")
If address8.Scheme = Uri.UriSchemeHttps Then
    Console.WriteLine("Uri is Https protocol.")
End If 

Applies to