WMIQuery.Release
----------------

Releases a query object.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMIQuery](component_WMIQuery.md) | [5.2](newinversion52.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMIQuery.Release"; WMIQueryRef ) 

**MBS**( **"WMIQuery.Release";** /\* Releases a query object. \*/  
**$WMIQueryRef**) /\* The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md).e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WMIQueryRef | The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md). | $ref |

### Result

Returns OK or error.

### Description

Releases a query object.  
### See also

- [WMIQuery.Connect](WMIQueryConnect.md)
- [WMIQuery.JSON](WMIQueryJSON.md)
- [WMIQuery.New](WMIQueryNew.md)
- [WMIQuery.Next](WMIQueryNext.md)
- [WMIQuery.PropertyNames](WMIQueryPropertyNames.md)
- [WMIQuery.PropertyType](WMIQueryPropertyType.md)
- [WMIQuery.PropertyValue](WMIQueryPropertyValue.md)
- [WMIQuery.Query](WMIQueryQuery.md)
- [WMIQuery.ReleaseAll](WMIQueryReleaseAll.md)

### Release notes

- **Version 10.5**
    - Added [CFunction.ReleaseAll](https://www.mbsplugins.eu/CFunctionReleaseAll.shtml), [CGImageSource.ReleaseAll](https://www.mbsplugins.eu/CGImageSourceReleaseAll.shtml), [CLibrary.ReleaseAll](https://www.mbsplugins.eu/CLibraryReleaseAll.shtml), [DynaPDF.ReleaseAll](https://www.mbsplugins.eu/DynaPDFReleaseAll.shtml), [ECKey.ReleaseAll](https://www.mbsplugins.eu/ECKeyReleaseAll.shtml), [FSEvents.ReleaseAll](https://www.mbsplugins.eu/FSEventsReleaseAll.shtml), [MarkDown.ReleaseAll](https://www.mbsplugins.eu/MarkDownReleaseAll.shtml), [MenuItem.ReleaseAll](https://www.mbsplugins.eu/MenuItemReleaseAll.shtml), [SendMail.ReleaseAll](https://www.mbsplugins.eu/SendMailReleaseAll.shtml), [Shell.ReleaseAll](https://www.mbsplugins.eu/ShellReleaseAll.shtml), [SmartCard.ReleaseAll](https://www.mbsplugins.eu/SmartCardReleaseAll.shtml), [TouchBar.ReleaseAll](https://www.mbsplugins.eu/TouchBarReleaseAll.shtml), [UserNotification.ReleaseAll](https://www.mbsplugins.eu/UserNotificationReleaseAll.shtml), [WMFP.ReleaseAll](https://www.mbsplugins.eu/WMFPReleaseAll.shtml), [WMIQuery.ReleaseAll](https://www.mbsplugins.eu/WMIQueryReleaseAll.shtml) and [WindowsUserNotification.ReleaseAll](https://www.mbsplugins.eu/WindowsUserNotificationReleaseAll.shtml).

### Example Databases

- [Win Only/WMI Query](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WMI%20Query.shtml#2ScriptAnchor_)

This function is free to use.

Created 22nd June 2015 , last changed 22nd June 2015

  
[WMIQuery.Query](WMIQueryQuery.md) - [WMIQuery.ReleaseAll](WMIQueryReleaseAll.md)

[HTML Version](WMIQueryRelease.shtml)