IPrintSchemaParameterInitializer::get_Value method (printerextension.h)

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

In PrintTicket XML, that is 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

Defines the VARIANT parameter pVar.

Return value

Returns an HRESULT value. If the property call was not successful, it returns the appropriate HRESULT 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 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

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

See also

IPrintSchemaParameterInitializer