PSDataCollection Methods

(see also Protected Methods)
 NameDescription
public methodAddAdds an object to the buffer. This method is introduced in Windows PowerShell 2.0.
public methodClearRemoves all objects from the buffer. This method is introduced in Windows PowerShell 2.0.
public methodCompleteCompletes the process of adding content to the collection. This method must be called before the collection can be used to invoke a pipeline asynchronously. This method is introduced in Windows PowerShell 2.0.
public methodContainsDetermines whether the specified object is in the buffer. This method is introduced in Windows PowerShell 2.0.
public methodCopyToCopies the contents of the buffer to an array, starting at the specified location. This method is introduced in Windows PowerShell 2.0.
public methodDisposeOverloaded. Releases the resources that are used by the PSDataCollection object. These methods implement the Dispose pattern used to release managed and unmanaged resources. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetEnumeratorRetrieves an enumerator that can iterate through the objects in the buffer. This method is introduced in Windows PowerShell 2.0.
public methodGetHashCode  (Inherited from Object)
public methodGetObjectDataPopulates an object with the data needed to serialize the PSDataCollection.
public methodGetType  (Inherited from Object)
public methodIndexOfDetermines the index of the specified object in the buffer. This method is introduced in Windows PowerShell 2.0.
public methodInsertInserts an object at the specified location. This method is introduced in Windows PowerShell 2.0.
public methodstaticImplicitOverloaded. Wraps an argument in a PSDataCollection.
public methodReadAllMakes a shallow copy of items in the current collection and then clears the current collection. This method is introduced in Windows PowerShell 2.0.
public methodRemoveRemoves the first occurrence of the specified object from the buffer. This method is introduced in Windows PowerShell 2.0.
public methodRemoveAtRemoves the object at the specified location. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)

  Name Description
protected method Dispose Overloaded. Releases the resources that are used by the PSDataCollection object. These methods implement the Dispose pattern used to release managed and unmanaged resources. This method is introduced in Windows PowerShell 2.0.
protected method Finalize  (Inherited from Object)
protected method InsertItem Inserts an object into the buffer at the specified location. This method is introduced in Windows PowerShell 2.0.
protected method MemberwiseClone  (Inherited from Object)
protected method RemoveItem Removes the object at the specified location. This method is introduced in Windows PowerShell 2.0.

  Name Description
  CopyTo Copies the elements of the collection to a specified array, starting at a specified index. This method is introduced in Windows PowerShell 2.0.
  GetEnumerator Retrieves the IEnumerator interface that can be used to access the objects of the collection. This method is introduced in Windows PowerShell 2.0.
  Add Appends an object to the collection. This method is introduced in Windows PowerShell 2.0.
  Contains Determines whether an object exists in the collection. This method is introduced in Windows PowerShell 2.0.
  IndexOf Retrieves the location of an object in the collection. This method is introduced in Windows PowerShell 2.0.
  Insert Places an object at a specific location in the collection. This method is introduced in Windows PowerShell 2.0.
  Remove Deletes the first occurrence of an object from the collection. This method is introduced in Windows PowerShell 2.0.


Show:
© 2014 Microsoft