Gets a new project element based on the supplied build item. This project element is not associated to a node in the existing hierarchy.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function GetProjectElement ( _
item As BuildItem _
) As ProjectElement
'使用
Dim instance As ProjectNode
Dim item As BuildItem
Dim returnValue As ProjectElement
returnValue = instance.GetProjectElement(item)
public ProjectElement GetProjectElement(
BuildItem item
)
public:
ProjectElement^ GetProjectElement(
BuildItem^ item
)
public function GetProjectElement(
item : BuildItem
) : ProjectElement
Parameters
item
Type: Microsoft.Build.BuildEngine.BuildItemThe MSBuild item to back the new project element.
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.