// Elements returns an array of WMI results
Elements returns an array of WMI results
// Elements returns an array of WMI results
func (r *Result) Elements() ([]*Result, error) {
	var err error
	var count int
	count, err = r.Count()
	if err != nil {
		return []*Result{}, errors.Wrap(err, "getting result count")
	}
	results := make([]*Result, count)
	for i := 0; i < count; i++ {
		results[i], err = r.ItemAtIndex(i)
		if err != nil {
			return []*Result{}, errors.Wrap(err, "ItemAtIndex")
		}
	}
	return results, nil
}
func ( r * Result ) Elements ( ) ( [ ] * Result , error ) { var err error var count int count , err = r . Count ( ) if err != nil { return [ ] * Result { } , errors . Wrap ( err , " " ) } results := make ( [ ] * Result , count ) for i := 0 ; i < count ; i ++ { results [ i ] , err = r . ItemAtIndex ( i ) if err != nil { return [ ] * Result { } , errors . Wrap ( err , " " ) } } return results , nil }
Elements returns an array of WMI results
Elements returns an array of WMI results