Name

GetNumChildren

Description

HRESULT
GetNumChildren([out] LONG* numChildSnapshots,
               [out,retval] ULONGLONG* error);

This method returns the number of child snapshots of a specified snapshot.

Parameters

numChildSnapshots
(output) The number of child snapshots belonging to the specified snapshot.
error
The error code returned by the operation.

Return Value

HRESULT

Remarks

Side Effects

None.

Requirements

VixCOM.h, since VMware Workstation 6.0.

Example


VBScript:
Dim err
Dim numChildren

' snapshot has already been initialized.

err = snapshot.GetNumChildren(numChildren)
if lib.ErrorIndicatesFailure(err) Then
   ' Handle the error...
End If

WScript.Echo("The snapshot has " & numSnapshots & " child snapshots) 

Copyright (C) 2007 VMware, Inc. All rights reserved.