ApplicationManager.GetObject(String, Type) Méthode

Définition

Retourne l’objet inscrit du type spécifié de l’application spécifiée.

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

Paramètres

appId
String

Identificateur unique de l’application propriétaire de l’objet.

type
Type

Type de l’objet à retourner.

Retours

Objet inscrit du type spécifié ; ou null si le type n’a pas été inscrit par le biais d’un appel à la CreateObject(String, Type, String, String, Boolean) méthode.

Exceptions

appId a la valeur null.

- ou -

type a la valeur null.

S’applique à