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 per l'applicazione proprietaria dell'oggetto .

type
Type

Tipo dell'oggetto da restituire.

Valori restituiti

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

Eccezioni

appId è null.

oppure

type è null.

Si applica a