PersonalizationStateQuery::Item Property (String^)
Gets or sets the value of the query parameter.
Assembly: System.Web (in System.Web.dll)
public: property Object^ default[ String^ queryKey ] { Object^ get(String^ queryKey); void set(String^ queryKey, Object^ value); }
Parameters
- queryKey
-
Type:
System::String^
A case-insensitive query string. The value should be one of the following: "PathToMatch", "UserInactiveSinceDate", or "UsernameToMatch".
Property Value
Type: System::Object^The value of the query parameter indicated by the queryKey parameter.
| Exception | Condition |
|---|---|
| ArgumentNullException | queryKey is null. |
| ArgumentException | 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 null if queryKey does not exist.
Available since 2.0