IPrintSchemaParameterInitializer::Value property

The Value (get_Value) property Gets the current value of the IPrintSchemaParameterInitializer object.

In PrintTicket XML, that’s the value of the <psf:Value> child element for the <psf:ParameterInit> element.

This property is read-only.

Syntax


HRESULT get_Value(
  [out, retval] VARIANT *pVar
);

Property value

The current value of the IPrintSchemaParameterInitializer object.

Error codes

Returns an HRESULT value, if the property call was successful. Otherwise it returns the appropriate error code.

Remarks

The Value (get_Value) property returns the current value of the IPrintSchemaParameterInitializer object in the form of a Variant variable. Here's how the value and type are stored in the Variant for the different parameter data types:

Parameter DataTypeVariant typeVariant value
PrintSchemaParameterDataType_IntegerV_VT(pVar) is VT_I4V_I4(pVar)
PrintSchemaParameterDataType_NumericStringV_VT(pVar) is VT_BSTRV_BSTR(pVar)
PrintSchemaParameterDataType_StringV_VT(pVar) is VT_BSTRV_BSTR(pVar)

 

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Header

Printerextension.h

See also

IPrintSchemaParameterInitializer

 

 

Send comments about this topic to Microsoft

Show: