Redigeeri

Jagamisviis:


TaskDialogIcon Constructors

Definition

Overloads

TaskDialogIcon(Bitmap)

Initializes a new instance of the TaskDialogIcon class from an Bitmap instance.

TaskDialogIcon(Icon)

Initializes a new instance of the TaskDialogIcon class from an Icon instance.

TaskDialogIcon(IntPtr)

Initializes a new instance of the TaskDialogIcon class from an icon handle.

TaskDialogIcon(Bitmap)

Initializes a new instance of the TaskDialogIcon class from an Bitmap instance.

public:
 TaskDialogIcon(System::Drawing::Bitmap ^ image);
public TaskDialogIcon (System.Drawing.Bitmap image);
new System.Windows.Forms.TaskDialogIcon : System.Drawing.Bitmap -> System.Windows.Forms.TaskDialogIcon
Public Sub New (image As Bitmap)

Parameters

image
Bitmap

The Bitmap instance.

Exceptions

image is null.

Remarks

The Icon instance from which this TaskDialogIcon instance is created must not be disposed while the icon is shown in the task dialog.

Applies to

TaskDialogIcon(Icon)

Initializes a new instance of the TaskDialogIcon class from an Icon instance.

public:
 TaskDialogIcon(System::Drawing::Icon ^ icon);
public TaskDialogIcon (System.Drawing.Icon icon);
new System.Windows.Forms.TaskDialogIcon : System.Drawing.Icon -> System.Windows.Forms.TaskDialogIcon
Public Sub New (icon As Icon)

Parameters

icon
Icon

The Icon instance.

Exceptions

icon is null.

Remarks

The Icon instance from which this TaskDialogIcon instance is created must not be disposed while the icon is shown in the task dialog.

Applies to

TaskDialogIcon(IntPtr)

Initializes a new instance of the TaskDialogIcon class from an icon handle.

public:
 TaskDialogIcon(IntPtr iconHandle);
public TaskDialogIcon (IntPtr iconHandle);
new System.Windows.Forms.TaskDialogIcon : nativeint -> System.Windows.Forms.TaskDialogIcon
Public Sub New (iconHandle As IntPtr)

Parameters

iconHandle
IntPtr

nativeint

A handle to an instance of an icon, or Zero to not show an icon.

Remarks

The specified icon handle must not be released while the icon is shown in the task dialog.

Applies to