Connectivity Software User's Guide and Reference
FromInternalValue(Object,Boolean) Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class > FromInternalValue Method : FromInternalValue(Object,Boolean) Method
Internal value of the publisher Id identifier.

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

If true, zero numeric values and empty strings are treated as null; if false, strict validation is applied.
Converts an internal value into a publisher Id, with optional relaxed validation.
Syntax
'Declaration
 
<JetBrains.Annotations.MustUseReturnValueAttribute()>
<JetBrains.Annotations.NotNullAttribute()>
<JetBrains.Annotations.PureAttribute()>
Public Overloads Shared Function FromInternalValue( _
   ByVal internalValue As Object, _
   ByVal relaxed As Boolean _
) As UAPublisherId
'Usage
 
Dim internalValue As Object
Dim relaxed As Boolean
Dim value As UAPublisherId
 
value = UAPublisherId.FromInternalValue(internalValue, relaxed)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.NotNull()]
[JetBrains.Annotations.Pure()]
public static UAPublisherId FromInternalValue( 
   object internalValue,
   bool relaxed
)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.NotNull()]
[JetBrains.Annotations.Pure()]
public:
static UAPublisherId^ FromInternalValue( 
   Object^ internalValue,
   bool relaxed
) 

Parameters

internalValue
Internal value of the publisher Id identifier.

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

relaxed
If true, zero numeric values and empty strings are treated as null; if false, strict validation is applied.

Return Value

Returns a publisher Id with the specified internal value.

Because the UASubscribeDataSetFilter has an implicit conversion from UAPublisherId, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned UAPublisherId (containing the publisher Id that you want to allow in the filter) in any place where UASubscribeDataSetFilter is expected as input, and the corresponding OPC UA subscribe dataset filter will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UASubscribeDataSetFilter.FromUAPublisherId static method instead.

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

This return value of this method should not be ignored.

Remarks

This method is pure, i.e. it does not have observable side effects.

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