// Name returns the name of the switch
Name returns the name of the switch
// Name returns the name of the switch
func (v VirtualSwitch) Name() (string, error) {
	name, err := v.virtualSwitch.GetProperty("ElementName")
	if err != nil {
		return "", errors.Wrap(err, "GetProperty(ElementName)")
	}
	return name.Value().(string), nil
}
func ( v VirtualSwitch ) Name ( ) ( string , error ) { name , err := v . virtualSwitch . GetProperty ( " " ) if err != nil { return " " , errors . Wrap ( err , " " ) } return name . Value ( ) . ( string ) , nil }
Name returns the name of the switch
Name returns the name of the switch