Partilhar via


COMVariant.uLongLong Method

Definition

Overloads

uLongLong()

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

uLongLong(Int64)

uLongLong()

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

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

Returns

The current value.

Remarks

If you pass in a value that has a different data type than the object, the object"s data type will be changed to match the value"s data type. A COMVariant object has an unsigned 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 9,223,372,036,854,775,808.

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

Applies to

uLongLong(Int64)

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

Parameters

_newValue
Int64

The new value; optional.

Returns

Applies to