WebBrowser.EncryptionLevel 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,表示目前在 WebBrowser 控制項中顯示之文件所使用的加密方法。
public:
property System::Windows::Forms::WebBrowserEncryptionLevel EncryptionLevel { System::Windows::Forms::WebBrowserEncryptionLevel get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.WebBrowserEncryptionLevel EncryptionLevel { get; }
[<System.ComponentModel.Browsable(false)>]
member this.EncryptionLevel : System.Windows.Forms.WebBrowserEncryptionLevel
Public ReadOnly Property EncryptionLevel As WebBrowserEncryptionLevel
屬性值
其中一個 WebBrowserEncryptionLevel 值。
- 屬性
例外狀況
這個 WebBrowser 執行個體已不再有效。
無法從基礎 ActiveX IWebBrowser2
控制項中擷取 WebBrowser
介面實作的參考。
備註
您可以使用此屬性搭配 事件, EncryptionLevelChanged 在應用程式的使用者介面中實作指標,類似于 Internet Explorer 中的鎖定圖示。 當目前的檔未加密時,這個屬性的值是 WebBrowserEncryptionLevel.Insecure 。 WebBrowser當控制項顯示包含具有不同加密層級內容之多個框架的網頁時,這個屬性的值是 WebBrowserEncryptionLevel.Mixed 。 當加密層級未知時,這個屬性的值是 WebBrowserEncryptionLevel.Unknown 。 其他值表示存在加密的類型。 若要模擬 Internet Explorer 中鎖定圖示的行為,請在滑鼠指標停留在指標上方時出現的工具提示中顯示加密類型。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應