Compartilhar via


ImportCollection Class

Definition

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

This class represents a collection of all Import elements in a given project file

public ref class ImportCollection : System::Collections::ICollection
public class ImportCollection : System.Collections.ICollection
type ImportCollection = class
    interface IEnumerable
    interface ICollection
type ImportCollection = class
    interface ICollection
    interface IEnumerable
Public Class ImportCollection
Implements ICollection
Inheritance
ImportCollection
Implements

Remarks

Warning

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

Properties

Count

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

ICollection member property for returning the number of items in this collection

IsSynchronized

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

ICollection member property for determining whether this collection is thread-safe

SyncRoot

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

ICollection member property for returning this collection's synchronization object

Methods

AddNewImport(String, String)

Adds a new import to the project ,and adds a corresponding <Import> element to the end of the project.

CopyTo(Array, Int32)

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

ICollection member method for copying the contents of this collection into an array

CopyTo(Import[], Int32)

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

Copy the contents of this collection into a strongly typed array

GetEnumerator()

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

IEnumerable member method for returning the enumerator

RemoveImport(Import)

Removes an import from the project, and removes the corresponding <Import> element from the project's XML.

Applies to