次の方法で共有


GenericObjectMeasureInfo Class

Definition

Class output by Measure-Object.

public ref class GenericObjectMeasureInfo sealed : Microsoft::PowerShell::Commands::MeasureInfo
public ref class GenericObjectMeasureInfo sealed : Microsoft::PowerShell::Commands::MeasureInfo
class GenericObjectMeasureInfo sealed : Microsoft::PowerShell::Commands::MeasureInfo
public sealed class GenericObjectMeasureInfo : Microsoft.PowerShell.Commands.MeasureInfo
type GenericObjectMeasureInfo = class
    inherit MeasureInfo
Public NotInheritable Class GenericObjectMeasureInfo
Inherits MeasureInfo
Inheritance
GenericObjectMeasureInfo

Remarks

This class is created to make 'Measure-Object -MAX -MIN' work with ANYTHING that supports 'CompareTo'. 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.

Constructors

GenericObjectMeasureInfo()

Initializes a new instance of the GenericObjectMeasureInfo class. Default ctor.

Properties

Average

The average of property values.

Count

Keeping track of number of objects with a certain property.

Maximum

The max of property values.

Minimum

The min of property values.

Property

Property name.

(Inherited from MeasureInfo)
StandardDeviation

The Standard Deviation of property values.

Sum

The sum of property values.

Applies to