QuickOPC User's Guide and Reference
Literal(Object,Type) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Filtering Namespace > UAFilterElements Class > Literal Method : Literal(Object,Type) Method
A literal value.
Specifies the type that should be used with the value.
Creates a new literal operand, with given value and the type to be used with it.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Literal( _
   ByVal value As Object, _
   ByVal valueType As Type _
) As UALiteralOperand
'Usage
 
Dim value As Object
Dim valueType As Type
Dim value As UALiteralOperand
 
value = UAFilterElements.Literal(value, valueType)
[NotNull()]
public static UALiteralOperand Literal( 
   object value,
   Type valueType
)
[NotNull()]
public:
static UALiteralOperand^ Literal( 
   Object^ value,
   Type^ valueType
) 

Parameters

value
A literal value.
valueType
Specifies the type that should be used with the value.

Return Value

The created operand.
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