($err, $numChildSnapshots) = SnapshotGetNumChildren($parentSnapshotHandle);
This function returns the number of child snapshots of a specified snapshot.
$numChildSnapshots. The number of child snapshots belonging to the specified snapshot.
use VMware::Vix::Simple; use VMware::Vix::API::Constants;since VMware Workstation 6.0.
my $parentSnapshot; my $numChildren; my $err; ($err, $numChildren) = SnapshotGetNumChildren($parentSnapshotHandle); printf "the snapshot has %d child snapshots\n", numChildren;