The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ApplicationManager::GetObject Method (String^, Type^)
.NET Framework (current version)
Returns the registered object of the specified type from the specified application.
Assembly: System.Web (in System.Web.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)] IRegisteredObject^ GetObject( String^ appId, Type^ type )
Parameters
- appId
-
Type:
System::String^
The unique identifier for the application that owns the object.
- type
-
Type:
System::Type^
The type of the object to return.
Return Value
Type: System.Web.Hosting::IRegisteredObject^The registered object of the specified type; or null if the type has not been registered through a call to the CreateObject method.
| Exception | Condition |
|---|---|
| ArgumentNullException | appId is null. —or— type is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: