Share via


COMVariant.longLong Method

Definition

Overloads

longLong()

Gets or sets the value of a COMVariant object of the VT_I8 (longlong) data type.

longLong(Int64)

longLong()

Gets or sets the value of a COMVariant object of the VT_I8 (longlong) data type.

public:
 virtual long longLong();
public virtual long longLong ();
abstract member longLong : unit -> int64
override this.longLong : unit -> int64
Public Overridable Function longLong () As Long

Returns

The current value.

Remarks

If you pass in a value that has a different data type than the object, the data type of the object will be changed to match the value"s data type. A COMVariant object has a longlong variant type if its data type is set to COMVariantType::VT_I8.

The following example creates a new COMVariant object of type VT_I8 and sets the value to 2,305,843,009,213,693,952.

{ 
    COMVariant var = new COMVariant( 
        COMVariantInOut::IN_OUT,  
        COMVariantType::VT_BOOL); 
    // Set value of the object 
    var.longLong(2305843009213693952); 
}

Applies to

longLong(Int64)

public:
 virtual long longLong(long _newValue);
public virtual long longLong (long _newValue);
abstract member longLong : int64 -> int64
override this.longLong : int64 -> int64
Public Overridable Function longLong (_newValue As Long) As Long

Parameters

_newValue
Int64

The new value; optional.

Returns

Applies to