Version

SetDataObject(Object,Boolean) Method

Places a data object on the clipboard and conditionally leaves it on the clipboard when the application exits.
Syntax
'Declaration
 
Public Overloads Shared Function SetDataObject( _
   ByVal data As Object, _
   ByVal copy As Boolean _
) As Boolean
public static bool SetDataObject( 
   object data,
   bool copy
)

Parameters

data
The data object to place on the clipboard
copy
True to leave the data on the system clipboard when the application exits.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also