TargetCollection TargetCollection TargetCollection TargetCollection Class


Represents a collection of all Target elements in a project.

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


Count Count Count Count

Gets a value indicating the number of Target objects in the TargetCollection.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating whether access to the TargetCollection is synchronized (thread safe).

Item[String] Item[String] Item[String] Item[String]

Gets the specified Target object in the TargetCollection.

SyncRoot SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to the TargetCollection.


AddNewTarget(String) AddNewTarget(String) AddNewTarget(String) AddNewTarget(String)

Adds a new Target element to the end of the project.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the entire TargetCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Exists(String) Exists(String) Exists(String) Exists(String)

Determines whether the specified Target exists in the TargetCollection.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator that iterates through the TargetCollection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveTarget(Target) RemoveTarget(Target) RemoveTarget(Target) RemoveTarget(Target)

Removes the specified Target element from the project.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to