Iasphelp::get_AvgJobSizeUnit 方法

AvgJobSizeUnit 属性使 ASP 网页能够确定平均作业大小的单位。

语法

HRESULT get_AvgJobSizeUnit(
  [out] long *pVal
);

参数

pVal [out]
调用方提供的指向接收下表中某个值的内存位置的指针。 该值指示与平均作业大小关联的单位。

含义
1 平均作业大小的单位以每个作业的页为单位。
2 每个作业的平均作业大小单位以字节为单位。

返回值

此方法在成功时返回S_OK。

VBScript 示例

查询 Iasphelp::AvgJobSizeUnit 属性以确定 表示 Iasphelp::AvgJobSize 属性值的单位。

在查询此属性之前,请调用 Iasphelp::CalcJobETA 方法来初始化属性值。

Dim objPrinter, strPrinter, JobUnits
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
objPrinter.CalcJobETA
JobUnits = objPrinter.AvgJobSizeUnit
' If JobUnits = 1 then job size is in units of pages
' If JobUnits = 2 then job size is in units of bytes

要求

目标平台: 桌面

另请参阅

Iasphelp::AvgJobSize

Iasphelp::CalcJobETA