HttpApplicationState.Set(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the value of an object in an HttpApplicationState collection.
public:
void Set(System::String ^ name, System::Object ^ value);
public void Set (string name, object value);
member this.Set : string * obj -> unit
Public Sub Set (name As String, value As Object)
Parameters
- name
- String
The name of the object to be updated.
- value
- Object
The updated value of the object.
Examples
The following example updates the value of an existing application state variable.
Application.Set("MyAppVar1", MyNewObjectValue);
Application.Set("MyAppVar1", MyNewObjectValue)
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.