Clipboard.SetDataObject Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Clears the Clipboard and then adds data to it.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)


Clears the Clipboard and then places nonpersistent data on it.

System_CAPS_pubmethodSystem_CAPS_staticSetDataObject(Object, Boolean)

Clears the Clipboard and then places data on it and specifies whether the data should remain after the application exits.

System_CAPS_pubmethodSystem_CAPS_staticSetDataObject(Object, Boolean, Int32, Int32)

Clears the Clipboard and then attempts to place data on it the specified number of times and with the specified delay between attempts, optionally leaving the data on the Clipboard after the application exits.

Return to top