COMVariant.createNoValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a COMVariant object of the VT_ERROR variant type with no value.
public:
static Dynamics::AX::Application::COMVariant ^ createNoValue();
public static Dynamics.AX.Application.COMVariant createNoValue ();
static member createNoValue : unit -> Dynamics.AX.Application.COMVariant
Public Shared Function createNoValue () As COMVariant
Returns
The new COMVariant object.
Remarks
A COMVariant object with no value can be used for COM parameters which are optional.
The following example creates an empty COMVariant object.
COMVariant noValue;
noValue = COMVariant::createNoValue();
info(noValue.toString());