Handles the paste operation on a project node.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Friend Overrides Function PasteFromClipboard ( _
targetNode As HierarchyNode _
) As Integer
'使用
Dim targetNode As HierarchyNode
Dim returnValue As Integer
returnValue = Me.PasteFromClipboard(targetNode)
protected internal override int PasteFromClipboard(
HierarchyNode targetNode
)
protected public:
virtual int PasteFromClipboard(
HierarchyNode^ targetNode
) override
protected internal override function PasteFromClipboard(
targetNode : HierarchyNode
) : int
Parameters
targetNode
Type: Microsoft.VisualStudio.Package.HierarchyNodeThe node under which this node should be pasted.
Return Value
Type: System.Int32
E_UNEXPECTED if no data could be gotten from the clipboard, E_FAIL if the IVsUIHierWinClipboardHelper could not be obtained, otherwise S_OK or an error code that was returned from the paste operation.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.