共用方式為


IppPrintDevice.SetPrinterAttributes 方法

定義

設定目前印表機的屬性,如網際網路列印通訊協定的指定對應所指定, (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>>

網際網路列印通訊協定 (IPP) 屬性名稱和值組的對應。

傳回

屬性集作業的結果。

適用於