IDesignerSerializationManager.SetName(Object, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the name of the specified existing object.
public:
void SetName(System::Object ^ instance, System::String ^ name);
public void SetName (object instance, string name);
abstract member SetName : obj * string -> unit
Public Sub SetName (instance As Object, name As String)
Parameters
- instance
- Object
The object instance to name.
- name
- String
The name to give the instance.
Remarks
This method is useful when it is necessary to create and then name an instance of an object without using CreateInstance. 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.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.