Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GenericObjectMeasureInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Class output by Measure-Object. Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Commands
Assembly:  Microsoft.PowerShell.Commands.Utility (in Microsoft.PowerShell.Commands.Utility.dll)

System.Object
  Microsoft.PowerShell.Commands.MeasureInfo
    Microsoft.PowerShell.Commands.GenericObjectMeasureInfo

public sealed class GenericObjectMeasureInfo : MeasureInfo

NameDescription
System_CAPS_pubmethodGenericObjectMeasureInfo()

Creates a new instace of the GenericObjectMeasureInfo class. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyAverage

The average of property values of an object. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyCount

The number of objects that define the specified property. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyMaximum

The maximum number of property values. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyMinimum

The minimum number of property values.

Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyProperty

Gets and sets the property to be measured.(Inherited from MeasureInfo.)

System_CAPS_pubpropertySum

The sum of the properties.

Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This class is created for fixing "Measure-Object -MAX -MIN should work with ANYTHING that supports CompareTo" bug (Win8:343911).

GenericMeasureInfo class is shipped with PowerShell V2. Fixing this bug requires, changing the type of Maximum and Minimum properties which would be a breaking change. Hence created a new class to not have an appcompat issues with PS V2.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show: