'Declaration Public Overloads Shared Function SetDataObject( _ ByVal data As Object, _ ByVal copy As Boolean, _ ByVal retryTimes As Integer, _ ByVal retryDelay As Integer _ ) As Boolean
public static bool SetDataObject( object data, bool copy, int retryTimes, int retryDelay )
Exception | Description |
---|---|
System.ArgumentNullException | data is null |
System.ArgumentOutOfRangeException | retryTimes or retryDelay is less than zero. |
System.Runtime.InteropServices.ExternalException | Data could not be placed on the clipboard |
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