IppPrintDevice.IsIppPrinter(String) 方法

定义

确定字符串参数是否是 Internet 打印协议的名称 (IPP) 打印机。

public:
 static bool IsIppPrinter(Platform::String ^ printerName);
 static bool IsIppPrinter(winrt::hstring const& printerName);
public static bool IsIppPrinter(string printerName);
function isIppPrinter(printerName)
Public Shared Function IsIppPrinter (printerName As String) As Boolean

参数

printerName
String

Platform::String

winrt::hstring

包含候选打印机名称的字符串。

返回

Boolean

bool

true 如果 printerName 是 Internet 打印协议的名称, (IPP) 打印机;否则为 false

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

适用于