Export (0) Print
Expand All

PSDataCollection Constructor

Creates a new PSDataCollection object. The variants of this constructor can create an empty object, an object that contains input data, and an object that specifies the number of items that the input buffer can contain without resizing the buffer. This constructor is introduced by Windows PowerShell 2.0.

This collection is used for the input buffer for the following methods.

NameDescription
PSDataCollection ()Creates a new PSDataCollection object that is empty. This constructor is introduced by Windows PowerShell 2.0.
PSDataCollection (IEnumerable)Creates a new PSDataCollection object that contains data for the input buffer, and calls the Complete method. This constructor is introduced by Windows PowerShell 2.0.
PSDataCollection (Int32)Creates a new PSDataCollection object that specifies the number of items that the input buffer can contain without resizing the buffer. This constructor is introduced by Windows PowerShell 2.0.
PSDataCollection (SerializationInfo, StreamingContext)Initializes a new instance of the PSDataCollection class from a serializable context.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft