Creates a new project element (which contains the build item), based on the supplied file and item type.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function CreateMsBuildFileItem ( _
file As String, _
itemType As String _
) As ProjectElement
'使用
Dim instance As ProjectNode
Dim file As String
Dim itemType As String
Dim returnValue As ProjectElement
returnValue = instance.CreateMsBuildFileItem(file, _
itemType)
public ProjectElement CreateMsBuildFileItem(
string file,
string itemType
)
public:
ProjectElement^ CreateMsBuildFileItem(
String^ file,
String^ itemType
)
public function CreateMsBuildFileItem(
file : String,
itemType : String
) : ProjectElement
Parameters
file
Type: System.StringThe path of the file to include.
itemType
Type: System.StringThe value for the Include property.
Return Value
Type: Microsoft.VisualStudio.Package.ProjectElement
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.