ClientBuildManager.CreateObject(Type, Boolean) Método

Definição

Cria um objeto no domínio do aplicativo de runtime do ASP.NET.

public:
 System::Web::Hosting::IRegisteredObject ^ CreateObject(Type ^ type, bool failIfExists);
public System.Web.Hosting.IRegisteredObject CreateObject (Type type, bool failIfExists);
member this.CreateObject : Type * bool -> System.Web.Hosting.IRegisteredObject
Public Function CreateObject (type As Type, failIfExists As Boolean) As IRegisteredObject

Parâmetros

type
Type

O tipo de objeto a ser criado.

failIfExists
Boolean

true para gerar uma exceção se o objeto já tiver sido criado no domínio de aplicativo do runtime ASP.NET; caso contrário, false.

Retornos

IRegisteredObject

Um objeto no domínio do aplicativo de runtime do ASP.NET.

Exceções

type é null.

O objeto já existe no domínio do aplicativo e failIfExists é true.

Aplica-se a

Confira também