GetTotalNumResults Method in Class SMS_Collection

The GetTotalNumResults WMI class method returns a count of all members in a collection, including the members of subcollections.

The following syntax is simplified from MOF code and is intended to show you the definition of the method.

sint32 GetTotalNumResults(
  [in] SMS_Collection ref Collection,
  [out] uint32 Result
);

Parameters

  • Collection
    Data type: string
    Qualifiers: In

    The CollectionID value or object path of the collection.

  • Result
    Data type: uint32
    Qualifiers: Out

    Number of collection members, including subcollections.

Return Values

The GetTotalNumResults method returns a sint32 which is always zero (0).

Example Code

For a similar example, see the example for the GetNumResults Method in Class SMS_Collection.

See Also

GetNumResults Method in Class SMS_Collection, SMS_Collection