IPrinterScriptablePropertyBag::GetInt32 method

Gets an integer property.

Syntax

HRESULT GetInt32(
  BSTR bstrName,
  LONG *pnValue
);

Parameters

bstrName

The property to read.

pnValue

The value read.

Return Value

This method returns an HRESULT value.

Remarks

A call to GetInt32 will throw an exception, if the specified property is not found. We recommend that you use a try-catch statement around calls to this method, to allow your app to handle any failures gracefully.

Requirements

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

See Also

IPrinterScriptablePropertyBag