asp.net.ph

HttpStaticObjectsCollection.GetObject Method

System.Web Namespace   HttpStaticObjectsCollection Class


Returns the object with the specified name from the collection. This property is an alternative to the this accessor.

[ VB ]
Public Function GetObject ( _
   ByVal name As String _
) As Object

[ C# ]
public object GetObject (
   string name
);

[ C++ ]
public: Object* GetObject (
   String* name
);

[ JScript ]
public function GetObject (
   name : String
) : Object;

Parameters

name
The case-insensitive name of the object to return.

Return Value

An object from the collection.

Example

The following example returns an object named ArrayList1 from the StaticObjects collection and copies it to an object variable.

[ VB ]
Dim myObject As Object
myObject = Application.StaticObjects.GetObject ( "ArrayList1" )

[ C# ]
Object myObject;
myObject = Application.StaticObjects.GetObject ( "ArrayList1" );
See Also

HttpStaticObjectsCollection Members   HttpApplicationState.StaticObjects Property Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph