Platforms to show: All Mac Windows Linux Cross-Platform

Back to WMIObjectMBS class.

WMIObjectMBS.GetNames as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the names of all properties in this object.

Some examples using this method:

WMIObjectMBS.GetProperty(Name as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a variant.

Objects, booleans, strings and numbers are supported directly. Also string arrays in version 13.1.
Other values are casted to string first.

WMIObjectMBS.GetPropertyBoolean(Name as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 13.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an integer.

Value must be of a numeric type.

WMIObjectMBS.GetPropertyDouble(Name as string) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as a double.

Value must be of a numeric type.

WMIObjectMBS.GetPropertyInt64(Name as string) as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as an integer value.

WMIObjectMBS.GetPropertyInteger(Name as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an integer.
Example
dim w as WindowsWMIMBS // your WMI object

MsgBox str(w.GetPropertyInteger("MaxClockSpeed")) // uint32

Value must be of a numeric type.

WMIObjectMBS.GetPropertyObject(Name as string) as WMIObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a value as an object.

Value must be of an IUnknown type.

Some examples using this method:

WMIObjectMBS.GetPropertyString(Name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a string.
Example
dim w as WindowsWMIMBS
MsgBox w.GetPropertyString("Name") // string

Some examples using this method:

WMIObjectMBS.GetPropertyStringArray(Name as string) as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 13.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets a property as a string array.
Example
dim w as WindowsWMIMBS
MsgBox join(w.GetPropertyStringArray("Name"), ", ")

WMIObjectMBS.GetPropertyType(Name as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets the type of a property.

You can send in the value you get here and the plugin can be changed to handle this type, too. Currently only numbers and strings are handled.

WMIObjectMBS.GetPropertyTypeString(Name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 12.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets the type of a property as a string.

For example type 8 is returned as "string".

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...