Language

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 ランタイムのアプリケーション ドメイン内のオブジェクト。

例外

type は nullです。

オブジェクトは既にアプリケーション ドメインに存在し、 failIfExists は true。

適用対象

こちらもご覧ください