_Document.FollowHyperlink(Object, Object, Object, Object, Object, Object, Object) 方法

定义

显示缓存文档(如果已下载)。Displays a cached document if it's already been downloaded. 否则,此方法将解析该超链接,下载目标文档,并在相应的应用程序中显示此文档。Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

public void FollowHyperlink (ref object Address, ref object SubAddress, ref object NewWindow, ref object AddHistory, ref object ExtraInfo, ref object Method, ref object HeaderInfo);
abstract member FollowHyperlink : obj * obj * obj * obj * obj * obj * obj -> unit
Public Sub FollowHyperlink (Optional ByRef Address As Object, Optional ByRef SubAddress As Object, Optional ByRef NewWindow As Object, Optional ByRef AddHistory As Object, Optional ByRef ExtraInfo As Object, Optional ByRef Method As Object, Optional ByRef HeaderInfo As Object)

参数

Address
Object

必需的 字符串Required String. 目标文档的地址。The address of the target document.

SubAddress
Object

可选对象Optional Object. 目标文档中的位置。The location within the target document. 默认值为一个空字符串。The default value is an empty string.

NewWindow
Object

可选对象Optional Object. 如果该属性值为 True,则在新窗口中显示目标位置。True to display the target location in a new window. 默认值为 FalseThe default value is False.

AddHistory
Object

可选对象Optional Object. 要添加到当前日期的历史记录文件夹的链接。True to add the link to the current day's history folder.

ExtraInfo
Object

可选对象Optional Object. 指定用于解析超链接的 HTTP 附加信息的字符串或字节数组。A string or a byte array that specifies additional information for HTTP to use to resolve the hyperlink. 例如,可以使用 ExtraInfo 指定图像映射的坐标、窗体的内容或 FAT 文件名。For example, you can use ExtraInfo to specify the coordinates of an image map, the contents of a form, or a FAT file name. 根据的值,可以发布或追加该字符串 MethodThe string is either posted or appended, depending on the value of Method. 使用 ExtraInfoRequired 属性来确定是否需要额外的信息。Use the ExtraInfoRequired property to determine whether extra information is required.

Method
Object

可选对象Optional Object. 指定 HTTP 附加信息的处理方式。Specifies the way additional information for HTTP is handled. MsoExtraInfoMethod.MsoExtraInfoMethod.

HeaderInfo
Object

可选对象Optional Object. 指定 HTTP 请求的标头信息的字符串。A string that specifies header information for the HTTP request. 默认值为空字符串。The default value is an empty string. 您可以将多个标题行组合成一个字符串。You can combine several header lines into a single string. 所指定的字符串自动转换为 ANSI 字符。The specified string is automatically converted into ANSI characters. 请注意,该 HeaderInfo 参数可能会覆盖默认 HTTP 标头字段。Note that the HeaderInfo argument may overwrite default HTTP header fields.

注解

如果超链接使用文件协议,该方法不是下载而是打开该文档。If the hyperlink uses the file protocol, this method opens the document instead of downloading it.

适用于