共用方式為


IPrinterScriptablePropertyBag::GetBytes 方法 (printerextension.h)

取得位元組數位屬性。

語法

HRESULT GetBytes(
  [in] BSTR      bstrName,
       IDispatch **ppArray
);

參數

[in] bstrName

要讀取的屬性。

ppArray

傳回的 JavaScript 陣列。

傳回值

這個方法會傳回 HRESULT 值。

言論

如果找不到指定的屬性,GetBytes 的呼叫將會擲回例外狀況。 建議您在呼叫此方法時使用 try-catch 語句,以允許您的應用程式正常處理任何失敗。

要求

要求 價值
最低支援的用戶端 Windows 8
支援的最低伺服器 Windows Server 2012
目標平臺 桌面
標頭 printerextension.h

另請參閱

IPrinterScriptablePropertyBag