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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for