Share via


ProjectRootElement.CreateItemElement Method

Definition

Creates an item.

Overloads

CreateItemElement(String)

Creates an item node. Caller must add it to the location of choice in the project.

CreateItemElement(String, String)

Creates an item node with an include. Caller must add it to the location of choice in the project.

CreateItemElement(String)

Source:
ProjectRootElement.cs

Creates an item node. Caller must add it to the location of choice in the project.

public:
 Microsoft::Build::Construction::ProjectItemElement ^ CreateItemElement(System::String ^ itemType);
public Microsoft.Build.Construction.ProjectItemElement CreateItemElement (string itemType);
member this.CreateItemElement : string -> Microsoft.Build.Construction.ProjectItemElement
Public Function CreateItemElement (itemType As String) As ProjectItemElement

Parameters

itemType
String

The item type of the item.

Returns

The item.

Remarks

Caller must add the item to the location of choice in the project.

Applies to

CreateItemElement(String, String)

Source:
ProjectRootElement.cs

Creates an item node with an include. Caller must add it to the location of choice in the project.

public:
 Microsoft::Build::Construction::ProjectItemElement ^ CreateItemElement(System::String ^ itemType, System::String ^ include);
public Microsoft.Build.Construction.ProjectItemElement CreateItemElement (string itemType, string include);
member this.CreateItemElement : string * string -> Microsoft.Build.Construction.ProjectItemElement
Public Function CreateItemElement (itemType As String, include As String) As ProjectItemElement

Parameters

itemType
String

The item type of the item.

include
String

The Include value of the item.

Returns

The item.

Remarks

Caller must add the item to the location of choice in the project.

Applies to