IPrinterScriptContext::get_UserProperties method

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

Return Value

None

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.

Note  Although the UserProperties property is read-only, the user property bag is a read/write property bag.
 

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header printerextension.h

See Also

IPrinterScriptContext

IPrinterScriptablePropertyBag