Share via


ApplicationManager.GetObject(String, Type) メソッド

定義

指定したアプリケーションから、指定した型の登録済みオブジェクトを返します。

public:
 System::Web::Hosting::IRegisteredObject ^ GetObject(System::String ^ appId, Type ^ type);
public System.Web.Hosting.IRegisteredObject GetObject (string appId, Type type);
member this.GetObject : string * Type -> System.Web.Hosting.IRegisteredObject
Public Function GetObject (appId As String, type As Type) As IRegisteredObject

パラメーター

appId
String

オブジェクトを所有するアプリケーションの一意の識別子。

type
Type

返すオブジェクトの型。

戻り値

IRegisteredObject

指定した型の登録済みオブジェクト。CreateObject(String, Type, String, String, Boolean) メソッドの呼び出しによってこの型が登録されていない場合は null

例外

appIdnullです。

または typenullです。

適用対象