不行,我试过了的,它不就是一个方法吗,怎么告诉 No overload for method 'Navigate2' takes '1' arguments 这个错误,这是个什么错误!!继续请教!!
这样的错误很名显是少了个参数呀! public Window Navigate( string URL, vsNavigateOptions Options );
可是其它参数都是可选的啊 object.Navigate2( _ URL As Variant, _ [Flags As Variant,] _ [TargetFrameName As Variant,] _ [PostData As Variant,] _ [Headers As Variant]) ParametersURL Required. A string expression that evaluates to the URL of the resource to display or the full path to the file location. Flags Optional. A constant or value that specifies whether to add the resource to the history list, whether to read from or write to the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by the BrowserNavConstants enumeration.TargetFrameName Optional. String expression that evaluates to the name of an HTML frame in the URL to display in the browser window. The possible values for this parameter are:_BLANK Load the link into a new unnamed window. _PARENT Load the link into the immediate parent of the document the link is in. _SELF Load the link into the same window the link was clicked in. _TOP Load the link into the full body of the current window. <WINDOW_NAME> 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 Optional. Data to send to the server during the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form to a program or script. If this parameter does not specify any post data, the Navigate2 method issues an HTTP GET transaction. This parameter is ignored if a URL is not an HTTP URL. Headers Optional. A value that specifies additional HTTP headers to send to the server. These headers are added to the default Microsoft Internet Explorer headers. The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if a URL is not an HTTP URL.
No overload for method 'Navigate2' takes '1' arguments
这个错误,这是个什么错误!!继续请教!!
public Window Navigate(
string URL,
vsNavigateOptions Options
);
object.Navigate2( _
URL As Variant, _
[Flags As Variant,] _
[TargetFrameName As Variant,] _
[PostData As Variant,] _
[Headers As Variant])
ParametersURL
Required. A string expression that evaluates to the URL of the resource to display or the full path to the file location. Flags
Optional. A constant or value that specifies whether to add the resource to the history list, whether to read from or write to the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by the BrowserNavConstants enumeration.TargetFrameName
Optional. String expression that evaluates to the name of an HTML frame in the URL to display in the browser window. The possible values for this parameter are:_BLANK
Load the link into a new unnamed window.
_PARENT
Load the link into the immediate parent of the document the link is in.
_SELF
Load the link into the same window the link was clicked in.
_TOP
Load the link into the full body of the current window.
<WINDOW_NAME>
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
Optional. Data to send to the server during the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form to a program or script. If this parameter does not specify any post data, the Navigate2 method issues an HTTP GET transaction. This parameter is ignored if a URL is not an HTTP URL. Headers
Optional. A value that specifies additional HTTP headers to send to the server. These headers are added to the default Microsoft Internet Explorer headers. The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if a URL is not an HTTP URL.