Transfers an item from one project to another.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function TransferItem ( _
oldMkDoc As String, _
newMkDoc As String, _
frame As IVsWindowFrame _
) As Integer
'使用
Dim instance As ProjectNode
Dim oldMkDoc As String
Dim newMkDoc As String
Dim frame As IVsWindowFrame
Dim returnValue As Integer
returnValue = instance.TransferItem(oldMkDoc, _
newMkDoc, frame)
public virtual int TransferItem(
string oldMkDoc,
string newMkDoc,
IVsWindowFrame frame
)
public:
virtual int TransferItem(
String^ oldMkDoc,
String^ newMkDoc,
IVsWindowFrame^ frame
)
public function TransferItem(
oldMkDoc : String,
newMkDoc : String,
frame : IVsWindowFrame
) : int
Parameters
oldMkDoc
Type: System.StringPath to the old document.
newMkDoc
Type: System.StringPath to the new document.
frame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameOptional. Pointer to the IVsWindowFrame interface.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsProject3.TransferItem(String, String, IVsWindowFrame)
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.