asp.net.ph

Application.Add Method

System.Web Namespace   HttpApplicationState Class


Adds a new object to the HttpApplicationState collection.

[ VB ]
Public Sub Add ( _
   ByVal name As String, _
   ByVal value As Object _
)

[ C# ]
public void Add (
   string name,
   object value
);

[ C++ ]
public: void Add (
   String* name,
   Object* value
);

[ JScript ]
public function Add (
   name : String,
   value : Object
);

Parameters

name
The name of the object to be added to the collection.
value
The value of the object.

Example

The following example adds a variable named myAppVar to the application state collection.

Application.Add ( "myAppVar", myObject );
  C# VB JScript

See Also

HttpApplicationState Members 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