Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region public NodeId(uint value, ushort namespaceIndex)
- /// <summary>
- /// Initializes a guid node identifier with a namespace index.
- /// </summary>
- /// <remarks>
- /// Creates a new NodeId that will use a numeric (unsigned int) for its Id, but also
- /// specifies which namespace this node should belong to.
- /// </remarks>
- /// <param name="value">The new (numeric) Id for the node being created</param>
- /// <param name="namespaceIndex">The index of the namespace that this node should belong to</param>
- /// <seealso cref="SetNamespaceIndex"/>
- public NodeId(uint value, ushort namespaceIndex)
- {
- m_namespaceIndex = namespaceIndex;
- m_identifierType = IdType.Numeric;
- m_identifier = value;
- }
- #endregion
- #region public NodeId(string value, ushort namespaceIndex)
- /// <summary>
- /// Initializes a string node identifier with a namespace index.
- /// </summary>
- /// <remarks>
- /// Creates a new NodeId that will use a string for its Id, but also
- /// specifies if the Id is a URI, and which namespace this node belongs to.
- /// </remarks>
- /// <param name="value">The new (string) Id for the node being created</param>
- /// <param name="namespaceIndex">The index of the namespace that this node belongs to</param>
- public NodeId(string value, ushort namespaceIndex)
- {
- m_namespaceIndex = namespaceIndex;
- m_identifierType = IdType.String;
- m_identifier = value;
- }
- #endregion
Add Comment
Please, Sign In to add comment