IPrintSchemaOption::GetPropertyValue 方法(printerextension.h)
获取具有给定名称的属性或 ScoredProperty 元素的值子元素的 XML 节点。
语法
HRESULT GetPropertyValue(
[in] BSTR bstrName,
[in] BSTR bstrNamespaceUri,
IUnknown **ppXmlValueNode
);
参数
[in] bstrName
Property 或 ScoredProperty 元素的名称属性的基值。
[in] bstrNamespaceUri
Property 或 ScoredProperty 元素的名称属性的命名空间 URI 值。
ppXmlValueNode
值子元素的 XML 节点。
返回值
返回 HRESULT 值。 如果方法调用未成功,它将返回相应的 HRESULT 错误代码。
言论
如果未找到请求的功能、选项或属性,此方法将返回S_FALSE并在功能、选项或属性的输出对象上设置 NULL 指针。
如果 IPrintSchemaTicket 对象不包含指定的功能、选项或属性,则应用必须获取 IPrintSchemaCapabilities 对象,并通过 IPrintSchemaCapabilities::GetFeatureByKeyName 或通过 IPrintSchemaCapabilities::GetFeature对其进行查询。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 8 |
支持的最低服务器 | Windows Server 2012 |
目标平台 | 桌面 |
标头 | printerextension.h |