Constable Authorization Engine 2.0 BETA

RuleBaseClipboardHandler.CanPaste Method 

[This is preliminary documentation and subject to change.]

Gets a flag indicating whether the instance can be pasted into the target AuthorizationPolicy.

[Visual Basic]
Overrides Public Function CanPaste( _
   ByVal instance As Object, _
   ByVal target As Object, _
   ByRef willPromptUser As Boolean _
) As Boolean _
    Implements IClipboardHandler.CanPaste
[C#]
public override bool CanPaste(
   object instance,
   object target,
   ref bool willPromptUser
);

Parameters

instance
The instance being pasted.
target
A reference to an AuthorizationPolicy instance that will own the pasted instance.
willPromptUser
An output flag indicating whether the handler will display a dialog prompt before pasting the object (true) or the paste operation won't require further user interaction (false).

Return Value

true if the instance can be pasted; otherwise false.

Implements

IClipboardHandler.CanPaste

See Also

RuleBaseClipboardHandler Class | LaMarvin.Constable.Design.Clipboard Namespace