Genrating NodeID from ID and Namespaceindex of node

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
milublues
Sr. Member
Sr. Member
Posts: 13
Joined: 12 Mar 2014, 10:50

Genrating NodeID from ID and Namespaceindex of node

Post by milublues »

Hello,

I have the string ID and namespaceindex of an object node.
I want to get the nodeID of the node.

When I Use
NodeID SearchNode=new NodeID(Convert.ToUint32(ID),NamespaceIndex);
SearchNode is null.

Please help , how to get the nodeID of the node from following information


Thanks
Milan

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Genrating NodeID from ID and Namespaceindex of node

Post by Support Team »

Hi Milan,

The Identifier part of a NodeId can be an integer, a string, GUID or ByteString.
If you have a string identifier you cannot convert it to an integer. You must create the NodeId with the string.

Best Regards,
Unified Automation Support Team

Post Reply