次の方法で共有


GetRecordCount method of the Win32_ReliabilityRecords class

Retrieves the number of records in the Win32_ReliabilityRecords class.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

uint32 GetRecordCount(
  [out] uint32 RecordCount
);

Parameters

RecordCount [out]

Returns an unsigned integer value for the number of records in Win32_ReliabilityRecords class.

Return value

Returns an HRESULT, where 0 (zero) indicates success. A nonzero return value indicates an error. If the number of records is inaccessible, the method returns WBEM_S_NO_MORE_DATA (0x40005). For more information about C++ and scripting error codes, see WMI Error Constants or WbemErrorEnum Constants, respectively.

Remarks

If the RacTask scheduled task is updating the records in Win32_ReliabilityRecords class, the RecordCount parameter might not match the number of records after the update is finished. This method is not available on 64-bit versions of the Windows operating system.

Requirements

Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2
MOF
RacWmiProv.mof
DLL
RacWmiProv.dll

See also

Win32_ReliabilityRecords