IppPrintDevice.SetPrinterAttributes 方法

定义

设置由 Internet 打印协议的指定映射指定的当前打印机的属性 (IPP) 属性名称和值对。

public:
 virtual IppSetAttributesResult ^ SetPrinterAttributes(IIterable<IKeyValuePair<Platform::String ^, IppAttributeValue ^> ^> ^ printerAttributes) = SetPrinterAttributes;
IppSetAttributesResult SetPrinterAttributes(IIterable<IKeyValuePair<winrt::hstring, IppAttributeValue const&>> const& printerAttributes);
public IppSetAttributesResult SetPrinterAttributes(IEnumerable<KeyValuePair<string,IppAttributeValue>> printerAttributes);
function setPrinterAttributes(printerAttributes)
Public Function SetPrinterAttributes (printerAttributes As IEnumerable(Of KeyValuePair(Of String, IppAttributeValue))) As IppSetAttributesResult

参数

printerAttributes

IIterable<IKeyValuePair<String,IppAttributeValue>>

IEnumerable<KeyValuePair<String,IppAttributeValue>>

IIterable<IKeyValuePair<Platform::String,IppAttributeValue>>

IIterable<IKeyValuePair<winrt::hstring,IppAttributeValue>>

Internet 打印协议 (IPP) 属性名称和值对的映射。

返回

属性集操作的结果。

适用于