'Usage
Parameters
- text
- The System.String to compare this node to.
//define our 2 String ids, and then define our node to use the first id. String id1 = "Hello", id2 = "World"; NodeId node1 = new NodeId(id1); //now to compare the node to the guids Utils.LogInfo("\n\nComparing NodeId to String"); Utils.LogInfo("\tComparing {0} to {1} = [equals] {2}", id1, id1, node1.Equals(id1)); Utils.LogInfo("\tComparing {0} to {1} = [ == ] {2}", id1, id1, node1 == id1); Utils.LogInfo("\tComparing {0} to {1} = [equals] {2}", id1, id2, node1.Equals(id2)); Utils.LogInfo("\tComparing {0} to {1} = [ == ] {2}", id1, id2, node1 == id2);
'define our 2 String ids, and then define our node to use the first id. Dim id1 As String = "Hello" Dim id2 As String = "World" Dim node1 As NodeId = New NodeId(id1) 'now to compare the node to the guids Utils.LogInfo("Comparing NodeId to String"); Utils.LogInfo("Comparing {0} to {1} = [equals] {2}", id1, id1, node1.Equals(id1)); Utils.LogInfo("Comparing {0} to {1} = [ = ] {2}", id1, id1, node1 = id1); Utils.LogInfo("Comparing {0} to {1} = [equals] {2}", id1, id2, node1.Equals(id2)); Utils.LogInfo("Comparing {0} to {1} = [ = ] {2}", id1, id2, node1 = id2);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2