This class constructs nsIVariant objects from simpler data types.
Most constructors create the proper nsIVariant object based upon the data type of the value argument. However, some nsIVariant types have the same C data types (e.g., boolean and UTF8 nsIVariants). For these cases, an extra nsIDataType argument must be provided to the constructor. The following nsIDataTypes must be explicitly specified in the constructor:
// Get an nsIVariant set with a C-string value. nsCOMPtr<nsIVariant> value = sbIPDVariant("Value").get();
Definition at line 111 of file sbIPDUtils.h.