DesignerSerializationManager.IDesignerSerializationManager.GetInstance 方法

定义

检索具有指定名称的创建对象的实例。

 virtual System::Object ^ System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetInstance(System::String ^ name) = System::ComponentModel::Design::Serialization::IDesignerSerializationManager::GetInstance;
object IDesignerSerializationManager.GetInstance (string name);
object? IDesignerSerializationManager.GetInstance (string name);
abstract member System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetInstance : string -> obj
override this.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetInstance : string -> obj
Function GetInstance (name As String) As Object Implements IDesignerSerializationManager.GetInstance

参数

name
String

要检索的对象的名称。

返回

具有给定名称的对象的实例,如果按该名称无法找到任何对象则为 null

实现

例外

namenull

对该属性的访问是在序列化会话的外部进行的。

适用于

另请参阅