IPrintSchemaParameterInitializer::get_Value method

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(
  VARIANT *pVar
);

Parameters

pVar

Return Value

None

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 DataType Variant type Variant value
PrintSchemaParameterDataType_Integer V_VT(pVar) is VT_I4 V_I4(pVar)
PrintSchemaParameterDataType_NumericString V_VT(pVar) is VT_BSTR V_BSTR(pVar)
PrintSchemaParameterDataType_String V_VT(pVar) is VT_BSTR V_BSTR(pVar)

Requirements

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

See Also

IPrintSchemaParameterInitializer