HttpApplicationState.AllKeys 属性

定义

获取 HttpApplicationState 集合中的访问键。

public:
 property cli::array <System::String ^> ^ AllKeys { cli::array <System::String ^> ^ get(); };
public string[] AllKeys { get; }
member this.AllKeys : string[]
Public ReadOnly Property AllKeys As String()

属性值

String[]

HttpApplicationState 对象名的字符串数组。

示例

以下示例使用应用程序状态集合中的所有对象名称填充字符串数组。

String[] StateVars = new String[Application.Count];
StateVars = Application.AllKeys;
Dim StateVars(Application.Count) As String
StateVars = Application.AllKeys

适用于