// GetProperty will return a *Result holding a given property
GetProperty will return a *Result holding a given property
// GetProperty will return a * Result holding a given property
func (r *Result) GetProperty(property string) (*Result, error) {
	res := r.rawRes.ToIDispatch()
	if res == nil {
		return nil, fmt.Errorf("Object is not callable")
	}
	res.AddRef()
	defer res.Release()
	rawVal, err := oleutil.GetProperty(res, property)
	if err != nil {
		return nil, err
	}
	wmiRes := &Result{
		rawRes: rawVal,
	}
	return wmiRes, nil
}
func ( r * Result ) GetProperty ( property string ) ( * Result , error ) { res := r . rawRes . ToIDispatch ( ) if res == nil { return nil , fmt . Errorf ( " " ) } res . AddRef ( ) defer res . Release ( ) rawVal , err := oleutil . GetProperty ( res , property ) if err != nil { return nil , err } wmiRes := & Result { rawRes : rawVal , } return wmiRes , nil }
GetProperty will return a *Result holding a given property
GetProperty will return a * Result holding a given property