共用方式為


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) 便可以派上用場。

適用於