Connectivity Software User's Guide and Reference
GetMultiStateDiscreteNode<TValue,TAttribute>(UAModelClient,UAModelNodeDescriptor) Method



OpcLabs.EasyOpcUACore Assembly > OpcLabs.EasyOpc.UA.DataAccess.Extensions Namespace > UAModelClientExtension Class > GetMultiStateDiscreteNode Method : GetMultiStateDiscreteNode<TValue,TAttribute>(UAModelClient,UAModelNodeDescriptor) Method
The type of the value of the node.
The type used to access the Value attribute.
The OPC-UA model client.

The value of this parameter cannot be null (Nothing in Visual Basic).

Model node descriptor. Identifies the node in OPC UA information model.

The value of this parameter cannot be null (Nothing in Visual Basic).

Obtains a multi-state discrete node from the model client. Allows to choose the type used to access the Value attribute.
Syntax
'Declaration
 
<ExtensionAttribute()>
<JetBrains.Annotations.NotNullAttribute()>
Public Overloads Shared Function GetMultiStateDiscreteNode
    (Of TValue,TAttribute)( _
   ByVal modelClient As UAModelClient, _
   ByVal modelNodeDescriptor As UAModelNodeDescriptor _
) As UAMultiStateDiscreteNode(Of TValue,TAttribute)
'Usage
 
Dim modelClient As UAModelClient
Dim modelNodeDescriptor As UAModelNodeDescriptor
Dim value As UAMultiStateDiscreteNode(Of TValue,TAttribute)
 
value = UAModelClientExtension.GetMultiStateDiscreteNode(Of TValue, TAttribute)(modelClient, modelNodeDescriptor)
[Extension()]
[JetBrains.Annotations.NotNull()]
public static UAMultiStateDiscreteNode<TValue,TAttribute> GetMultiStateDiscreteNode<TValue,TAttribute>( 
   UAModelClient modelClient,
   UAModelNodeDescriptor modelNodeDescriptor
)
[Extension()]
[JetBrains.Annotations.NotNull()]
public:
static UAMultiStateDiscreteNode<TValue^,TAttribute^>^ GetMultiStateDiscreteNodegeneric<typename TValue>
generic<typename TAttribute>
( 
   UAModelClient^ modelClient,
   UAModelNodeDescriptor^ modelNodeDescriptor
) 

Parameters

modelClient
The OPC-UA model client.

The value of this parameter cannot be null (Nothing in Visual Basic).

modelNodeDescriptor
Model node descriptor. Identifies the node in OPC UA information model.

The value of this parameter cannot be null (Nothing in Visual Basic).

Type Parameters

TValue
The type of the value of the node.
TAttribute
The type used to access the Value attribute.

Return Value

Returns the multi-state discrete item node obtained from the model client.

This method never returns null (Nothing in Visual Basic).

Remarks

This is an extension method (info: C#, VB.NET). In languages that have support for extensions methods (such as C# and VB.NET), you can use the extension method as if it were a regular method on the object that is its first parameter. In other languages (such as with Python.NET), you will call the extension as a static method, and pass it the object on which it acts as its first parameter.

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