Connectivity Software User's Guide and Reference
IsValidInternalValue(Object) Method



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class > IsValidInternalValue Method : IsValidInternalValue(Object) Method
The value to be tested.

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

Determines whether an object represents a valid internal value of a publisher Id.
Syntax
'Declaration
 
<CLSCompliantAttribute(False)>
<JetBrains.Annotations.MustUseReturnValueAttribute()>
<JetBrains.Annotations.PureAttribute()>
Public Overloads Shared Function IsValidInternalValue( _
   ByVal value As Object _
) As Boolean
'Usage
 
Dim value As Object
Dim value As Boolean
 
value = UAPublisherId.IsValidInternalValue(value)
[CLSCompliant(false)]
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.Pure()]
public static bool IsValidInternalValue( 
   object value
)
[CLSCompliant(false)]
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.Pure()]
public:
static bool IsValidInternalValue( 
   Object^ value
) 

Parameters

value
The value to be tested.

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

Return Value

Returns true if the value represents a valid internal value of a publisher Id; returns false otherwise.

This return value of this method should not be ignored.

Remarks

Internal value is used in the OPC-UA PubSub specification, not CLS-compliant. It is System.Byte, System.UInt16, System.UInt32, System.UInt64, System.String, or null.

null is considered a valid internal value.

This method uses strict validation (equivalent to calling the overload with relaxed parameter set to false). Zero numeric values and empty strings are considered invalid.

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