This topic has not yet been rated - Rate this topic

IPrinterScriptablePropertyBag::SetBytes method

Writes a byte array property.

Syntax


HRESULT SetBytes(
  [in]  BSTR bstrName,
  [in]  IDispatch *pdispArray
);

Parameters

bstrName [in]

The array to write to.

pdispArray [in]

The JavaScript array to write.

Return value

This method returns an HRESULT value.

Remarks

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

Header

Printerextension.h

See also

IPrinterScriptablePropertyBag

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

© 2013 Microsoft. All rights reserved.