Partilhar via


BuildItemGroup.ToArray Method

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

Copies the items in this group into a new array. NOTE: the copies are NOT clones i.e. only the references are copied

public:
 cli::array <Microsoft::Build::BuildEngine::BuildItem ^> ^ ToArray();
public Microsoft.Build.BuildEngine.BuildItem[] ToArray ();
member this.ToArray : unit -> Microsoft.Build.BuildEngine.BuildItem[]
Public Function ToArray () As BuildItem()

Returns

A new array containing the BuildItem objects copied from the BuildItemGroup.

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to