IPrinterScriptContext::get_UserProperties method (printerextension.h)
Provides access to the user property bag, if the property bag is present.
This property is read-only.
Syntax
HRESULT get_UserProperties(
IPrinterScriptablePropertyBag **ppPropertyBag
);
Parameters
ppPropertyBag
Defines the IPrinterScriptablePropertyBag parameter ppPropertyBag.
Return value
Returns an HRESULT value. If the property call was not successful, it returns the appropriate HRESULT error code.
Remarks
The user property bag is not available in (constraint) JavaScript functions when the functions are called during de-spooling. Therefore JavaScript functions should be designed to handle the situation when there is a failure to retrieve the user property bag.
Although the UserProperties property is read-only, the user property bag is a read/write property bag.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | printerextension.h |