Adds folders and project items from another project.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Friend Overridable Sub AddFolderFromOtherProject ( _
folderToAdd As String, _
targetNode As HierarchyNode _
)
'使用
Dim folderToAdd As String
Dim targetNode As HierarchyNode
Me.AddFolderFromOtherProject(folderToAdd, _
targetNode)
protected internal virtual void AddFolderFromOtherProject(
string folderToAdd,
HierarchyNode targetNode
)
protected public:
virtual void AddFolderFromOtherProject(
String^ folderToAdd,
HierarchyNode^ targetNode
)
protected internal function AddFolderFromOtherProject(
folderToAdd : String,
targetNode : HierarchyNode
)
Parameters
folderToAdd
Type: System.StringA project reference of the following format: {Guid}|project|folderPath.
targetNode
Type: Microsoft.VisualStudio.Package.HierarchyNodeThe HierarchyNode under which to add the folder.
Remarks
Note that while the folder content is copied to the new location on disk, but only the project items which are part of the source project are added to the project.
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.