Share via


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 para o aplicativo que possui o objeto.

type
Type

O tipo de objeto a ser retornado.

Retornos

IRegisteredObject

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

Exceções

appId é null.

- ou - type é null.

Aplica-se a