ApplicationManager.GetObject(String, Type) Método

Definição

Retorna o objeto registrado do tipo especificado do aplicativo especificado.

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

Parâmetros

appId
String

O identificador exclusivo do aplicativo que possui o objeto.

type
Type

O tipo do objeto a ser retornado.

Retornos

O objeto registrado do tipo especificado; ou null se o tipo não tiver sido registrado por meio de uma chamada para o CreateObject(String, Type, String, String, Boolean) método.

Exceções

appId é null.

-ou-

type é null.

Aplica-se a