HttpApplicationStateBase.Set(String, Object) 方法

定义

当在派生类中重写时,更新集合中对象的值。When overridden in a derived class, updates the value of an object in the collection.

public:
 virtual void Set(System::String ^ name, System::Object ^ value);
public virtual void Set (string name, object value);
abstract member Set : string * obj -> unit
override this.Set : string * obj -> unit
Public Overridable Sub Set (name As String, value As Object)

参数

name
String

要更新的对象的名称。The name of the object to update.

value
Object

对象更新之后的值。The updated value of the object.

异常

始终。Always.

适用于