HtmlDocument.DefaultEncoding 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得目前文件預設使用的編碼方式。
public:
property System::String ^ DefaultEncoding { System::String ^ get(); };
public string DefaultEncoding { get; }
member this.DefaultEncoding : string
Public ReadOnly Property DefaultEncoding As String
屬性值
代表 String 瀏覽器在頁面首次顯示時所使用的編碼。
備註
預設編碼是受管理的 HTML 文件物件模型(DOM)在頁面初次載入時嘗試使用的編碼方式。 此編碼可由 Internet Explorer 的 Encoding 設定,或是嵌入頁面中的 META 標籤。