ClientBuildManager.CreateObject(Type, Boolean) メソッド

定義

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

パラメーター

type
Type

作成するオブジェクトの型。

failIfExists
Boolean

ASP.NET ランタイムのアプリケーション ドメインにオブジェクトが既に作成されていたときに例外をスローする場合は true。それ以外の場合は false

戻り値

ASP.NET ランタイムのアプリケーション ドメインにオブジェクト。

例外

typenullです。

オブジェクトがアプリケーション ドメインに既に存在しており、failIfExiststrue です。

適用対象

こちらもご覧ください