WorkflowMarkupSerializationManager.IDesignerSerializationManager.SetName 方法

定义

设置指定的现有对象的名称。

 virtual void System.ComponentModel.Design.Serialization.IDesignerSerializationManager.SetName(System::Object ^ instance, System::String ^ name) = System::ComponentModel::Design::Serialization::IDesignerSerializationManager::SetName;
void IDesignerSerializationManager.SetName (object instance, string name);
abstract member System.ComponentModel.Design.Serialization.IDesignerSerializationManager.SetName : obj * string -> unit
override this.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.SetName : obj * string -> unit
Sub SetName (instance As Object, name As String) Implements IDesignerSerializationManager.SetName

参数

instance
Object

要命名的对象。

name
String

要分配给对象的名称。

实现

注解

如果需要在不使用 IDesignerSerializationManager.SetName(Object, String) 的情况下创建然后命名对象的实例,则 WorkflowMarkupSerializationManager.IDesignerSerializationManager.CreateInstance(Type, ICollection, String, Boolean) 十分有用。

适用于