HttpApplicationState.Set(String, Object) HttpApplicationState.Set(String, Object) HttpApplicationState.Set(String, Object) HttpApplicationState.Set(String, Object) Method

定義

HttpApplicationState コレクション内のオブジェクトの値を更新します。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)

パラメーター

name
String String String String

更新されるオブジェクトの名前。The name of the object to be updated.

value
Object Object Object Object

オブジェクトの更新された値。The updated value of the object.

次の例では、既存のアプリケーション状態変数の値を更新します。The following example updates the value of an existing application state variable.

Application.Set("MyAppVar1", MyNewObjectValue);
   
Application.Set("MyAppVar1", MyNewObjectValue)

適用対象