HtmlHistory HtmlHistory HtmlHistory HtmlHistory Class

定義

管理使用者在目前工作階段內瀏覽過的文件和網站清單。Manages the list of documents and Web sites the user has visited within the current session.

public ref class HtmlHistory sealed : IDisposable
public sealed class HtmlHistory : IDisposable
type HtmlHistory = class
    interface IDisposable
Public NotInheritable Class HtmlHistory
Implements IDisposable
繼承
HtmlHistoryHtmlHistoryHtmlHistoryHtmlHistory
實作

備註

會追蹤 managed HTML 文件物件模型 (DOM) 的使用者內瀏覽過的站台給定工作階段The managed HTML Document Object Model (DOM) keeps track of the sites that a user has visited within a given session. A工作階段裝載 managed 的 HTML DOM 應用程式啟動,直到應用程式關閉時,指的時間長度。A session is defined as the length of time from when an application hosting the managed HTML DOM starts until the application closes.

當您使用Url屬性或Navigate方法WebBrowser控制瀏覽至新的網頁,Internet Explorer 可能會從伺服器擷取該頁面的最新版本或顯示目前的版本Internet Explorer 快取。When you use the Url property or Navigate method of the WebBrowser control to navigate to a new Web page, Internet Explorer may either retrieve the latest version of that page from the server or display the version that is currently in the Internet Explorer cache. 相反地,當您使用HtmlHistory向前及向後巡覽這個堆疊,Internet Explorer 會顯示的頁面,從本機電腦的快取的已下載的 Web 內容,除非伺服器可讓您指定應過期的文件內容立即。By contrast, when you use HtmlHistory to navigate forward and backward in this stack, Internet Explorer will display the pages from the local computer's cache of downloaded Web content, unless the server indicates that the document's content should expire immediately. 如需有關記錄清單和 Internet Explorer 中的快取的詳細資訊,請參閱文件234067 如何以防止快取在 Internet Explorer中 「 Microsoft 支援 」 網站。For more information on the history list and caching in Internet Explorer, see article 234067 How To Prevent Caching in Internet Explorer in the Microsoft Support website.

主體的方法HtmlHistoryGo,其中巡覽至導覽堆疊中的指定位置或以新的統一資源定位器 (URL)。The principal method of HtmlHistory is Go, which navigates either to the specified position in the navigation stack or to a new Uniform Resource Locator (URL). ForwardBack方法瀏覽下和向上導覽堆疊上,分別由所需的項目數目。The Forward and Back methods navigate down and up the navigation stack, respectively, by the required number of entries.

屬性

DomHistory DomHistory DomHistory DomHistory

取得這個類別所包裝的 Unmanaged 介面。Gets the unmanaged interface wrapped by this class.

Length Length Length Length

取得記錄堆疊的大小。Gets the size of the history stack.

方法

Back(Int32) Back(Int32) Back(Int32) Back(Int32)

在巡覽堆疊中往後巡覽指定的項目數。Navigates backward in the navigation stack by the specified number of entries.

Dispose() Dispose() Dispose() Dispose()

釋放 HtmlHistory 所使用的所有資源。Releases all resources used by the HtmlHistory.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Forward(Int32) Forward(Int32) Forward(Int32) Forward(Int32)

在巡覽堆疊中往前巡覽指定的項目數。Navigates forward in the navigation stack by the specified number of entries.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Go(Int32) Go(Int32) Go(Int32) Go(Int32)

巡覽至瀏覽器記錄中的指定相對位置。Navigates to the specified relative position in the browser's history.

Go(String) Go(String) Go(String) Go(String)

巡覽至指定的統一資源定位器 (URL)。Navigates to the specified Uniform Resource Locator (URL).

Go(Uri) Go(Uri) Go(Uri) Go(Uri)

巡覽至指定的統一資源定位器 (URL)。Navigates to the specified Uniform Resource Locator (URL).

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於