In the Managed Object Format (MOF) language, properties are the data fields or attributes of a Windows Management Instrumentation (WMI) class. There are several different types of properties that can be used in a MOF file, including:
- String: A string property is a sequence of Unicode characters. It is denoted in MOF as “string”. For example:
string PropertyName;
- Boolean: A boolean property is a true/false value. It is denoted in MOF as “boolean”. For example:
boolean PropertyName;
- Integer: An integer property is a whole number. There are several different types of integer properties in MOF, including “sint8” (8-bit signed integer), “sint16” (16-bit signed integer), “sint32” (32-bit signed integer), “uint8” (8-bit unsigned integer), “uint16” (16-bit unsigned integer), and “uint32” (32-bit unsigned integer). For example:
sint32 PropertyName; uint16 PropertyName;
- Real: A real property is a floating-point number. There are two types of real properties in MOF: “real32” (single-precision floating-point number) and “real64” (double-precision floating-point number). For example:
real32 PropertyName; real64 PropertyName;
- Datetime: A datetime property is a date and time value. It is denoted in MOF as “datetime”. For example:
datetime PropertyName;
- Reference: A reference property is a reference to another WMI class. It is denoted in MOF as “reference”. For example:
reference PropertyName;
- Object: An object property is an instance of a WMI class. It is denoted in MOF as “object”. For example:
object PropertyName;