ClientBuildManager.CreateObject Method

Creates an object in the application domain of the ASP.NET runtime.

Namespace: System.Web.Compilation
Assembly: System.Web (in system.web.dll)

public:
IRegisteredObject^ CreateObject (
	Type^ type, 
	bool failIfExists
)
public IRegisteredObject CreateObject (
	Type type, 
	boolean failIfExists
)
public function CreateObject (
	type : Type, 
	failIfExists : boolean
) : IRegisteredObject
Not applicable.

Parameters

type

The type of object to be created.

failIfExists

true to throw an exception if the object has already been created in the application domain of the ASP.NET runtime; otherwise, false.

Return Value

An IRegisteredObject.

Exception typeCondition

ArgumentNullException

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

InvalidOperationException

The object already exists in the application domain and failIfExists is true.

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: