Adds an item to the project.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Overridable Function AddItem ( _
path As String, _
op As VSADDITEMOPERATION _
) As ProjectItem
'使用
Dim path As String
Dim op As VSADDITEMOPERATION
Dim returnValue As ProjectItem
returnValue = Me.AddItem(path, op)
protected virtual ProjectItem AddItem(
string path,
VSADDITEMOPERATION op
)
protected:
virtual ProjectItem^ AddItem(
String^ path,
VSADDITEMOPERATION op
)
protected function AddItem(
path : String,
op : VSADDITEMOPERATION
) : ProjectItem
Parameters
path
Type: System.StringThe absolute path of the item.
op
Type: Microsoft.VisualStudio.Shell.Interop.VSADDITEMOPERATIONA value describing how to add the item, from the VSADDITEMOPERATION enumeration.
Return Value
Type: ProjectItem
The added ProjectItem.
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.