共用方式為


HttpApplicationState.AllKeys 屬性

定義

取得 HttpApplicationState 集合中的便捷鍵 (Access Key)。

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

適用於