ActivityCodeDomSerializationManager.SetName Method (Object, String)
Sets the name of the specified existing Object.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
SerializationManager method of the same name.provides an indirect reference to the
An exception is thrown if you try to rename an existing object or if you try to give a new object a name that is already taken. In addition, an exception is thrown if you do not pass in an existing object to the method.
Available since 3.0