共用方式為


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