CodeDomSerializerBase.DeserializeInstance Method

Returns an instance of the given type.

Namespace: System.ComponentModel.Design.Serialization
Assembly: System.Design (in system.design.dll)

protected virtual Object DeserializeInstance (
	IDesignerSerializationManager manager,
	Type type,
	Object[] parameters,
	string name,
	bool addToContainer
)
protected Object DeserializeInstance (
	IDesignerSerializationManager manager, 
	Type type, 
	Object[] parameters, 
	String name, 
	boolean addToContainer
)
protected function DeserializeInstance (
	manager : IDesignerSerializationManager, 
	type : Type, 
	parameters : Object[], 
	name : String, 
	addToContainer : boolean
) : Object
Not applicable.

Parameters

manager

The IDesignerSerializationManager to use for serialization.

type

The Type of the instance to return.

parameters

The parameters to pass to the constructor for type.

name

The name of the deserialized object.

addToContainer

true to add this object to the design container; otherwise, false. The object must implement IComponent for this to have any effect.

Return Value

An instance of type.

Exception typeCondition

ArgumentNullException

manager or type is a null reference (Nothing in Visual Basic).

The DeserializeInstance method is invoked during deserialization to obtain an instance of an object. When this is called, an instance of the requested type should be returned. The default implementation invokes the CreateInstance method of the manager parameter.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: