Partager via


Ink.CanPaste Method

Ink.CanPaste Method

Returns a value that indicates whether the IDataObject Leave Site can be converted to an Ink object.

Definition

Visual Basic .NET Public Function CanPaste( _
ByVal dataObject As Object _
) As Boolean
C# public bool CanPaste(
object dataObject
);
Managed C++ public: bool* CanPaste(
Object *dataObject
);

Parameters

dataObject System.Object. The IDataObject Leave Site to inspect. The default value is null, in which case the data object on the Clipboard Leave Site is used.

Return Value

System.Boolean. Whether the data can be converted to an Ink object.

true The data can be converted to an Ink object.
false The data cannot be converted to an Ink object.

Exceptions

ObjectDisposedException Leave Site: The Ink object is disposed.
ThreadStateException Leave Site:

Remarks

If the supplied IDataObject Leave Site is null (Nothing in Microsoft® Visual Basic® .NET), then the data object on the Clipboard Leave Site is used.

Important Security InformationSecurity Alert: If using under partial trust, this method requires UIPermissionClipboard.AllClipboard Leave Site permission. See Security And Trust for more information.

Examples

See Also