Share via


COMVariant.variantInOutFlag Method

Definition

Overloads

variantInOutFlag()

Sets or returns the InOutFlag setting for a COMVariant object.

variantInOutFlag(COMVariantInOut)

variantInOutFlag()

Sets or returns the InOutFlag setting for a COMVariant object.

public:
 virtual Dynamics::AX::Application::COMVariantInOut variantInOutFlag();
public virtual Dynamics.AX.Application.COMVariantInOut variantInOutFlag ();
abstract member variantInOutFlag : unit -> Dynamics.AX.Application.COMVariantInOut
override this.variantInOutFlag : unit -> Dynamics.AX.Application.COMVariantInOut
Public Overridable Function variantInOutFlag () As COMVariantInOut

Returns

The current InOutFlag setting.

Remarks

The following is a list of possible values for the newValue parameter.

  • COMVariantInOut::IN
  • COMVariantInOut::IN_OUT
  • COMVariantInOut::OUT
  • COMVariantInOut::OUT_RETVAL.

The InOutFlag setting describes how the data that is stored in the object is treated when the object is used as an argument in the COMDispFunction.call method. The possible values of the InOutFlag setting correspond to the values for COM Automation objects described in the Win32 SDK. The data stored in the COMVariant object is unaffected when the InOutFlag setting is changed.

The following example creates a COMVariant object that has the InOutFlag setting set to IN, and then uses the variantInOutFlag method to change the setting to OUT.

{ 
    COMVariant var = new COMVariant(COMVariantInOut::IN); 
    // Change the 'var' object to be used as an out argument 
    var.variantInOutFlag(COMVariantInOut::OUT); 
}

Applies to

variantInOutFlag(COMVariantInOut)

public:
 virtual Dynamics::AX::Application::COMVariantInOut variantInOutFlag(Dynamics::AX::Application::COMVariantInOut _newValue);
public virtual Dynamics.AX.Application.COMVariantInOut variantInOutFlag (Dynamics.AX.Application.COMVariantInOut _newValue);
abstract member variantInOutFlag : Dynamics.AX.Application.COMVariantInOut -> Dynamics.AX.Application.COMVariantInOut
override this.variantInOutFlag : Dynamics.AX.Application.COMVariantInOut -> Dynamics.AX.Application.COMVariantInOut
Public Overridable Function variantInOutFlag (_newValue As COMVariantInOut) As COMVariantInOut

Parameters

_newValue
COMVariantInOut

The new InOutFlag setting; optional.

Returns

Applies to