IDesignerSerializationManager.GetInstance(String) Method

Definition

Gets an instance of a created object of the specified name, or null if that object does not exist.

public:
 System::Object ^ GetInstance(System::String ^ name);
public object GetInstance (string name);
public object? GetInstance (string name);
abstract member GetInstance : string -> obj
Public Function GetInstance (name As String) As Object

Parameters

name
String

The name of the object to retrieve.

Returns

An instance of the object with the given name, or null if no object by that name can be found.

Remarks

The name of the object to retrieve must have been set through a prior call to CreateInstance.

Applies to