WMIQuery.PropertyType
---------------------

Queries data type of a property.

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

**MBS**( **"WMIQuery.PropertyType";** /\* Queries data type of a property. \*/  
**$WMIQueryRef**; /\* The reference to the query. Create it with [WMIQuery.New](WMIQueryNew.md) and destroy them with [WMIQuery.Release](WMIQueryRelease.md).e.g. $ref \*/   
**$Name**) /\* The name of the property to query.e.g. "test" \*/ 

### 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 |
| Name | The name of the property to query. | "test" |

### Result

Returns OK or error.

### Description

Queries data type of a property.  
The type can be prefixed with "Array" for arrays.  
Common types include Null, Empty, Int32, Float64, Text and Boolean.  
### See also

- [WMIQuery.Connect](WMIQueryConnect.md)
- [WMIQuery.New](WMIQueryNew.md)
- [WMIQuery.PropertyNames](WMIQueryPropertyNames.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.PropertyNames](WMIQueryPropertyNames.md) - [WMIQuery.PropertyValue](WMIQueryPropertyValue.md)

[HTML Version](WMIQueryPropertyType.shtml)