PicoOPC User's Guide and Reference
Variant Constructor



OpcLabs.PicoOpc Assembly > OpcLabs.PicoOpc.UA Namespace > Variant Structure : Variant Constructor
The type of the data contained in the variant.
The value contained in the variant.
Determines whether the variant contains an array.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   Optional ByVal builtInType As BuiltInType, _
   Optional ByVal value As Object, _
   Optional ByVal isArray As Boolean _
)
'Usage
 
Dim builtInType As BuiltInType
Dim value As Object
Dim isArray As Boolean
 
Dim instance As New Variant(builtInType, value, isArray)

Parameters

builtInType
The type of the data contained in the variant.
value
The value contained in the variant.
isArray
Determines whether the variant contains an array.
Exceptions
ExceptionDescription
Usage error.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Variant Structure
Variant Members