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