Partager via


ClientBuildManager.CreateObject(Type, Boolean) Méthode

Définition

Crée un objet dans le domaine d'application du runtime 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

Paramètres

type
Type

Type d'objet à créer.

failIfExists
Boolean

true pour lever une exception si l'objet a déjà été créé dans le domaine d'application du runtime ASP.NET ; sinon, false.

Retours

IRegisteredObject

Objet dans le domaine d'application du runtime ASP.NET.

Exceptions

type a la valeur null.

L'objet existe déjà dans le domaine d'application et failIfExists a la valeur true.

S’applique à

Voir aussi