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 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 |
|
Header |
|
See also