HttpApplicationStateBase.Add(String, Object) 方法

定义

在派生类中重写时,将新对象添加到集合。When overridden in a derived class, adds a new object to the collection.

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

参数

name
String

要添加到集合的对象的名称。The name of the object to add to the collection.

value
Object

对象的值。The value of the object.

异常

始终。Always.

适用于