This documentation is archived and is not being maintained.
HttpStaticObjectsCollection.GetObject Method
.NET Framework 1.1
Returns the object with the specified name from the collection. This property is an alternative to the this accessor.
[Visual Basic] 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.
[Visual Basic] Dim MyObject As Object MyObject = Application.StaticObjects.GetObject("ArrayList1") [C#] Object MyObject; MyObject = Application.StaticObjects.GetObject("ArrayList1"); [C++] Object* MyObject; MyObject = Application->StaticObjects->GetObject(S"ArrayList1"); [JScript] var myObject : Object = Application.StaticObjects.GetObject("ArrayList1")
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpStaticObjectsCollection Class | HttpStaticObjectsCollection Members | System.Web Namespace
Show: