PersonalizationStateQuery.Item Property
Assembly: System.Web (in system.web.dll)
public: property Object^ default [String^] { Object^ get (String^ queryKey); void set (String^ queryKey, Object^ value); }
/** @property */ public Object get_Item (String queryKey) /** @property */ public void set_Item (String queryKey, Object value)
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- queryKey
A case-insensitive query string. The value should be one of the following: "PathToMatch", "UserInactiveSinceDate", or "UsernameToMatch".
Property Value
The value of the query parameter indicated by the queryKey parameter.| Exception type | Condition |
|---|---|
| queryKey is a null reference (Nothing in Visual Basic). | |
| queryKey is an empty string (""). - or - When trimmed, queryKey results in an empty string. - or - A value provided for one of the three properties on PersonalizationStateQuery was of the wrong type. |
This property is the default indexer for the PersonalizationStateQuery class. It returns the value of the query parameter indicated by queryKey. You can use PersonalizationStateQuery.this["UsernameToMatch"], PersonalizationStateQuery.this["PathToMatch"] and PersonalizationStateQuery.this["UserInactiveSinceDate"] to set the UsernameToMatch, PathToMatch, and UserInactiveSinceDate properties, respectively. When these three properties are set in the indexer, they are validated against the proper type.
This property returns a null reference (Nothing in Visual Basic) if queryKey does not exist.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.