HttpFileCollection.AllKeys 屬性

定義

取得字串陣列,包含檔案集合中所有成員的索引鍵 (名稱)。Gets a string array containing the keys (names) of all members in the file 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[]

檔案名稱的陣列。An array of file names.

範例

下列範例會將 HttpFileCollection 從用戶端傳輸的名稱載入字串陣列中。The following example loads the HttpFileCollection names transmitted from a client into a string array.

String[] MyNameArray = Request.Files.AllKeys;

Dim MyNameArray() As String = Request.Files.AllKeys
 

適用於

另請參閱