HttpApplicationState.AllKeys 屬性

定義

取得 HttpApplicationState 集合中的便捷鍵 (Access Key)。Gets the access keys in the HttpApplicationState collection.

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 物件名稱的字串陣列。A string array of HttpApplicationState object names.

範例

下列範例會在應用程式狀態集合中填入具有所有物件名稱的字串陣列。The following example fills a string array with all the object names in the application state collection.

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

適用於