OPC Studio User's Guide and Reference
VarTypes Enumeration



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComInterop Namespace : VarTypes Enumeration
Contains pre-defined constants of VarType internal values.
Syntax
'Declaration
 
<CLSCompliantAttribute(True)>
<ComVisibleAttribute(True)>
<DisplayName2Attribute("VARTYPE-s")>
<GuidAttribute("1EF418B3-D92F-4B99-BE91-4111FA38B5DB")>
Public Enum VarTypes 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As VarTypes
[CLSCompliant(true)]
[ComVisible(true)]
[DisplayName2("VARTYPE-s")]
[Guid("1EF418B3-D92F-4B99-BE91-4111FA38B5DB")]
public enum VarTypes : System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
[CLSCompliant(true)]
[ComVisible(true)]
[DisplayName2("VARTYPE-s")]
[Guid("1EF418B3-D92F-4B99-BE91-4111FA38B5DB")]
public enum class VarTypes : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
Members
MemberValueDescription
Array8192VT_ARRAY. Indicates a SAFEARRAY pointer.

Remarks:

Obsolete. If possible, use ArrayOfXXXX constants to denote the array types.

The value of this enum member is 8192.

ArrayOfBool8203VT_ARRAY | VT_BOOL. Indicates an array of Boolean values.

The value of this enum member is 8203.

ArrayOfBStr8200VT_ARRAY | VT_BSTR. Indicates an array of BSTR strings.

The value of this enum member is 8200.

ArrayOfCy8198VT_ARRAY | VT_CY. Indicates an array of currency values.

The value of this enum member is 8198.

ArrayOfDate8199VT_ARRAY | VT_DATE. Indicates an array of DATE values.

The value of this enum member is 8199.

ArrayOfDecimal8206VT_ARRAY | VT_DECIMAL. Indicates an array of decimal values.

The value of this enum member is 8206.

ArrayOfDispatch8201VT_ARRAY | VT_DISPATCH. Indicates an array of IDispatch pointers.

The value of this enum member is 8201.

ArrayOfError8202VT_ARRAY | VT_ERROR. Indicates an array of SCODE-s.

The value of this enum member is 8202.

ArrayOfI18208VT_ARRAY | VT_I1. Indicates an array of char values.

The value of this enum member is 8208.

ArrayOfI28194VT_ARRAY | VT_I2. Indicates an array of short integers.

The value of this enum member is 8194.

ArrayOfI48195VT_ARRAY | VT_I4. Indicates an array of long integers.

The value of this enum member is 8195.

ArrayOfInt8214VT_ARRAY | VT_INT. Indicates an array of integer values.

The value of this enum member is 8214.

ArrayOfR48196VT_ARRAY | VT_R4. Indicates an array of float values.

The value of this enum member is 8196.

ArrayOfR88197VT_ARRAY | VT_R8. Indicates an array of double values.

The value of this enum member is 8197.

ArrayOfRecord8228VT_ARRAY | VT_RECORD. Indicates an array of user defined types.

The value of this enum member is 8228.

ArrayOfUI18209VT_ARRAY | VT_UI1. Indicates an array of byte-s.

The value of this enum member is 8209.

ArrayOfUI28210VT_ARRAY | VT_UI2. Indicates an array of unsigned short-s.

The value of this enum member is 8210.

ArrayOfUI48211VT_ARRAY | VT_UI4. Indicates an array of unsigned long-s.

The value of this enum member is 8211.

ArrayOfUInt8215VT_ARRAY | VT_UINT. Indicates an array of unsigned integer values.

The value of this enum member is 8215.

ArrayOfUnknown8205VT_ARRAY | VT_UNKNOWN. Indicates an array of IUnknown pointers.

The value of this enum member is 8205.

ArrayOfVariant8204VT_ARRAY | VT_VARIANT. Indicates an array of VARIANT far pointers.

The value of this enum member is 8204.

Blob65VT_BLOB. Indicates length prefixed bytes.

The value of this enum member is 65.

BlobObject70VT_BLOB_OBJECT. Indicates that a blob contains an object.

The value of this enum member is 70.

Bool11VT_BOOL. Indicates a Boolean value.

The value of this enum member is 11.

BStr8VT_BSTR. Indicates a BSTR string.

The value of this enum member is 8.

BStrBlob4095VT_BSTR_BLOB.

The value of this enum member is 4095.

ByRef16384VT_BYREF. Indicates that a value is a reference.

The value of this enum member is 16384.

CArray28VT_CARRAY. Indicates a C style array.

The value of this enum member is 28.

Cf71VT_CF. Indicates the clipboard format.

The value of this enum member is 71.

Clsid72VT_CLSID. Indicates a class ID.

The value of this enum member is 72.

Cy6VT_CY. Indicates a currency value.

The value of this enum member is 6.

Date7VT_DATE. Indicates a DATE value.

The value of this enum member is 7.

Decimal14VT_DECIMAL. Indicates a decimal value.

The value of this enum member is 14.

Dispatch9VT_DISPATCH. Indicates an IDispatch pointer.

The value of this enum member is 9.

Empty0VT_EMPTY. Indicates that a value was not specified.

The value of this enum member is 0.

Error10VT_ERROR. Indicates an SCODE.

The value of this enum member is 10.

FileTime64VT_FILETIME. Indicates a FILETIME value.

The value of this enum member is 64.

HResult25VT_HRESULT. Indicates an HRESULT.

The value of this enum member is 25.

I116VT_I1. Indicates a char value.

The value of this enum member is 16.

I22VT_I2. Indicates a short integer.

The value of this enum member is 2.

I43VT_I4. Indicates a long integer.

The value of this enum member is 3.

I820VT_I8. Indicates a 64-bit integer.

The value of this enum member is 20.

Illegal65535VT_ILLEGAL.

The value of this enum member is 65535.

IllegalMasked4095VT_ILLEGALMASKED.

The value of this enum member is 4095.

Int22VT_INT. Indicates an integer value.

The value of this enum member is 22.

IntPtr37VT_INT_PTR.

The value of this enum member is 37.

LPStr30VT_LPSTR. Indicates a null-terminated string.

The value of this enum member is 30.

LPWStr31VT_LPWSTR. Indicates a wide string terminated by a null.

The value of this enum member is 31.

Null1VT_NULL. Indicates a null value, similar to a null value in SQL.

The value of this enum member is 1.

Ptr26VT_PTR. Indicates a pointer type.

The value of this enum member is 26.

R44VT_R4. Indicates a float value.

The value of this enum member is 4.

R85VT_R8. Indicates a double value.

The value of this enum member is 5.

Record36VT_RECORD. Indicates a user defined type.

The value of this enum member is 36.

Reserved32768VT_RESERVED.

The value of this enum member is 32768.

SafeArray27VT_SAFEARRAY. Indicates a SAFEARRAY. Not valid in a VARIANT.

The value of this enum member is 27.

Storage67VT_STORAGE. Indicates that the name of a storage follows.

The value of this enum member is 67.

StoredObject69VT_STORED_OBJECT. Indicates that a storage contains an object.

The value of this enum member is 69.

Stream66VT_STREAM. Indicates that the name of a stream follows.

The value of this enum member is 66.

StreamedObject68VT_STREAMED_OBJECT. Indicates that a stream contains an object.

The value of this enum member is 68.

TypeMask4095VT_TYPEMASK.

The value of this enum member is 4095.

UI117VT_UI1. Indicates a byte.

The value of this enum member is 17.

UI218VT_UI2. Indicates an unsigned short.

The value of this enum member is 18.

UI419VT_UI4. Indicates an unsigned long.

The value of this enum member is 19.

UI821VT_UI8. Indicates an 64-bit unsigned integer.

The value of this enum member is 21.

UInt23VT_UINT. Indicates an unsigned integer value.

The value of this enum member is 23.

UIntPtr38VT_UINT_PTR.

The value of this enum member is 38.

Unknown13VT_UNKNOWN. Indicates an IUnknown pointer.

The value of this enum member is 13.

UserDefined29VT_USERDEFINED. Indicates a user defined type.

The value of this enum member is 29.

Variant12VT_VARIANT. Indicates a VARIANT far pointer.

The value of this enum member is 12.

Vector4096VT_VECTOR. Indicates a simple, counted array.

The value of this enum member is 4096.

VersionedStream73VT_VERSIONED_STREAM.

The value of this enum member is 73.

Void24VT_VOID. Indicates a C style void.

The value of this enum member is 24.

Remarks

There are implicit conversions to this type from:

There are implicit conversions from this type to:

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         OpcLabs.BaseLib.ComInterop.VarTypes

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also