ApplicationManager.GetObject(String, Type) Metodo

Definizione

Restituisce l'oggetto registrato del tipo specificato dall'applicazione specificata.

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

Parametri

appId
String

Identificatore univoco dell'applicazione a cui appartiene l'oggetto.

type
Type

Tipo di oggetto da restituire.

Restituisce

IRegisteredObject

Oggetto registrato del tipo specificato o null se il tipo non è stato registrato mediante una chiamata al metodo CreateObject(String, Type, String, String, Boolean).

Eccezioni

appId è null.

-oppure- type è null.

Si applica a