Bewerken

Delen via


DataObject.SetImage(Image) Method

Definition

Adds an Image to the data object in the Bitmap format.

public:
 virtual void SetImage(System::Drawing::Image ^ image);
public virtual void SetImage (System.Drawing.Image image);
abstract member SetImage : System.Drawing.Image -> unit
override this.SetImage : System.Drawing.Image -> unit
Public Overridable Sub SetImage (image As Image)

Parameters

image
Image

The Image to add to the data object.

Exceptions

image is null.

Remarks

To retrieve image data from the data object, first use the ContainsImage method to determine whether the data object contains image data before retrieving it with the GetImage method.

Applies to

See also