Navigates the browser to a location that might not be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Windows Shell namespace.
object.Navigate2(URL, Flags, TargetFrameName, PostData, Headers)
Required. A variable or expression that evaluates to the URL of the resource to display, the full path to the file location, or a PIDL that represents a folder in the Shell namespace.
Flags [in, optional]
A constant or value that specifies a combination of the values defined by the BrowserNavConstants enumeration.
TargetFrameName [in, optional]
Case-sensitive string expression that evaluates to the name of the frame in which to display the resource. The possible values for this parameter are.
Load the link into a new unnamed window.
Load the link into the immediate parent of the document the link is in.
Load the link into the same window the link was clicked in.
Load the link into the full body of the current window.
A named HTML frame. If no frame or window exists that matches the specified target name, a new window is opened for the specified link.
PostData [in, optional]
Data that is sent to the server as part of a HTTP POST transaction. A POST transaction typically is used to send data collected by an HTML form. If this parameter does not specify any POST data, this method issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP (or HTTPS) URL.
Headers [in, optional]
A String that contains additional HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. For example, headers can specify the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if the URL is not an HTTP (or HTTPS) URL.
Returns one of the following values.
The operation was successful.
One or more parameters are invalid.
Out of memory.
The operation failed.
See Navigate for additional usage notes.
This method extends the Navigate method to allow for Shell integration; however, this method does not make Navigate obsolete. The original method can still be used for URL navigations.