2 implementations of SetName
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
103void IDesignerSerializationManager.SetName(object instance, string name)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
917void IDesignerSerializationManager.SetName(object instance, string name)
25 references to SetName
System.Windows.Forms.Design (10)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
255manager.SetName(nestedComp, name); 370manager.SetName(exValue, name);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
151((IDesignerSerializationManager)manager).SetName(data._value, data._name); 252dsm.SetName(instance, compName);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
105((IDesignerSerializationManager)Manager).SetName(instance, name);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
615manager.SetName(rhs, variableReferenceEx.VariableName); 1015manager.SetName(result, name); 2087manager.SetName(value, name);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
33manager.SetName(obj, name!);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
125manager.SetName(sm, ResourceManagerName);
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (15)
769iManager.SetName(instance, name); 787iManager.SetName(instance, "name"); 844iManager.SetName(component, "name"); 932iManager.SetName(instance, name); 948iManager.SetName(mockInstance.Object, name); 1919iManager.SetName(instance1, name); 1924iManager.SetName(instance2, "OtherName"); 1935Assert.Throws<ArgumentNullException>("instance", () => iManager.SetName(null, "name")); 1944Assert.Throws<ArgumentNullException>("name", () => iManager.SetName(new object(), null)); 1955iManager.SetName(instance, name); 1956Assert.Throws<ArgumentException>("name", () => iManager.SetName(new object(), name)); 1968iManager.SetName(instance, name); 1969Assert.Throws<ArgumentException>("name", () => iManager.SetName(instance, name)); 1970Assert.Throws<ArgumentException>("instance", () => iManager.SetName(instance, "OtherName")); 1979Assert.Throws<InvalidOperationException>(() => iManager.SetName(null, null));