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



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class > IsValidExternalValue Method : IsValidExternalValue(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 external value of a publisher Id.
Syntax
'Declaration
 
<JetBrains.Annotations.PureAttribute()>
<JetBrains.Annotations.MustUseReturnValueAttribute()>
Public Overloads Shared Function IsValidExternalValue( _
   ByVal value As Object _
) As Boolean
'Usage
 
Dim value As Object
Dim value As Boolean
 
value = UAPublisherId.IsValidExternalValue(value)
[JetBrains.Annotations.Pure()]
[JetBrains.Annotations.MustUseReturnValue()]
public static bool IsValidExternalValue( 
   object value
)
[JetBrains.Annotations.Pure()]
[JetBrains.Annotations.MustUseReturnValue()]
public:
static bool IsValidExternalValue( 
   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 external value of a publisher Id; returns false otherwise.

This return value of this method should not be ignored.

Remarks

External value is a CLS-compliant value used e.g. when accessing the publisher ID over $(typeUrl. It is System.Byte, System.Int32, System.Int64, System.Decimal, System.String, or null.

null is considered a valid external value.

A zero number or an empty string are invalid external values.

This method uses strict validation (equivalent to calling the overload with relaxed parameter set to false).

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