PrinterSettings.SetHdevnames(IntPtr) 方法

定义

将相关信息从给定句柄复制到 PrinterSettings 中。Copies the relevant information out of the given handle and into the PrinterSettings.

public:
 void SetHdevnames(IntPtr hdevnames);
public void SetHdevnames (IntPtr hdevnames);
member this.SetHdevnames : nativeint -> unit
Public Sub SetHdevnames (hdevnames As IntPtr)

参数

hdevnames
IntPtr

Win32 DEVNAMES 结构的句柄。The handle to a Win32 DEVNAMES structure.

例外

打印机句柄无效。The printer handle is invalid.

适用于