Share via


COMVariant.createNoValue Method

Definition

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());

Applies to