
340
|
Chapter 16: The HttpRequest Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Parameter
stringArray
A string array variable to receive the list of client-supported languages.
Example
See the example for the UserHostAddress property.
Notes
To test this property, you can set support for additional languages in your
browser as follows:
• In Internet Explorer 6, select Internet Options… from the Tools menu. On
the General tab of the Internet Options dialog, click the Languages… button.
Use the Language Preference dialog to add, remove, or move languages up or
down on the list of preferred languages.
• In Netscape Navigator 6, select Preferences… from the Edit menu and then
select the Languages node in the lefthand tree view. Use the options on the
right to add, remove, or move languages up or down on the list.
Now if you browse a page containing the code in the UserHostAddress example,
all languages you select will be listed in the order you chose.
Collections Reference
The Request object in ASP.NET supports seven collections, four of which were
supported in ASP (Cookies, Forms, QueryString, and ServerVariables), and three
of which are new (Files, Headers, and Params).
The collections of the Request class support the following common set of
properties:
AllKeys
Returns a string array of all keys in the collection.
Count
Returns an integer ...