IPrinterScriptablePropertyBag::SetInt32 method

Writes an integer property.

Syntax


HRESULT SetInt32(
  [in] BSTR bstrName,
  [in] LONG nValue
);

Parameters

bstrName [in]

The property to set.

nValue [in]

The new value to set.

Return value

This method returns an HRESULT value.

Remarks

A call to SetInt32 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

 

 

Send comments about this topic to Microsoft

Show: