Constable Authorization Engine 2.0 BETA

PolicyClipboardHandler.CanPaste Method 

[This is preliminary documentation and subject to change.]

Gets a flag indicating whether the instance can be pasted.

[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 AuthorizationPolicy instance being pasted.
target
A reference to a target AuthorizationPolicy 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

Remarks

The implementation ignores the target argument and it always sets the output willPromptUser argument to true, because the Paste operation for AuthorizationPolicy objects clones the pasted policy and displays it in a new Policy Designer window.

See Also

PolicyClipboardHandler Class | LaMarvin.Constable.Design.Clipboard Namespace