全部显示

ConnectionSpeed 属性

       

返回或设置 FpConnectionSpeed 常数值,该值代表用户的 Internet 连接类型。可读写。

expression.ConnectionSpeed

expression  必选。返回 Application 对象的表达式。

说明

ConnectionSpeed 属性与 SlowPage 属性联合使用可以确定 Web 页的模拟下载时间。默认值是 fpConnect144

示例

下列示例将 ConnectionSpeed 属性设为 fpConnect56K,模拟 56K 的调制解调器。文件下载所需的时间以及“报表”视图中用于确定“慢速”网页的条件都将基于此值。

Sub SpeedOfConnection()
'Modifies the ConnectionSpeed property

    Dim objApp As FrontPage.Application
    Set objApp = FrontPage.Application

    With objApp
       'Set the connection type to 56K modem
       .ConnectionSpeed = fpConnect56K
    End With

End Sub