OPC Studio User's Guide and Reference
Parse Method (UAPublisherId)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPublisherId Class : Parse Method
A string representation of the publisher Id.
true to ignore case in the type part; false to regard case in the type part.
Parses a string containing an OPC-UA publisher Id, and returns a corresponding publisher Id object.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function Parse( _
   ByVal value As String, _
   ByVal ignoreCase As Boolean _
) As UAPublisherId
'Usage
 
Dim value As String
Dim ignoreCase As Boolean
Dim value As UAPublisherId
 
value = UAPublisherId.Parse(value, ignoreCase)
[NotNull()]
public static UAPublisherId Parse( 
   string value,
   bool ignoreCase
)
[NotNull()]
public:
static UAPublisherId^ Parse( 
   String^ value,
   bool ignoreCase
) 

Parameters

value
A string representation of the publisher Id.
ignoreCase
true to ignore case in the type part; false to regard case in the type part.

Return Value

Returns the OPC-UA publisher Id object parsed from the input value.
Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

The format of an argument is invalid, or a composite format string is not well-formed.
An arithmetic, casting, or conversion operation in a checked context resulted in an overflow.
Remarks

The string representation is either an empty string, or "[Byte/UInt16/UInt32/UInt64/String]value".

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