WMIQuery.PropertyNames
----------------------

Queries a list of property names for current item.

| 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.PropertyNames"; WMIQueryRef ) 

**MBS**( **"WMIQuery.PropertyNames";** /\* Queries a list of property names for current item. \*/  
**$WMIQueryRef**) /\* The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md).e.g. $ref \*/ 

### Parameters

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

### Result

Returns list or error.

### Description

Queries a list of property names for current item.  
You can than use those names to query property types and values.  
### See also

- [WMIQuery.Connect](WMIQueryConnect.md)
- [WMIQuery.New](WMIQueryNew.md)
- [WMIQuery.PropertyType](WMIQueryPropertyType.md)
- [WMIQuery.PropertyValue](WMIQueryPropertyValue.md)
- [WMIQuery.Release](WMIQueryRelease.md)

### Example Databases

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

This function checks for a license.

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

  
[WMIQuery.Next](WMIQueryNext.md) - [WMIQuery.PropertyType](WMIQueryPropertyType.md)

[HTML Version](WMIQueryPropertyNames.shtml)