PersonalizationStateInfoCollection::Item Property (String^, String^)
.NET Framework (current version)
Gets an element from the collection based on the specified parameters.
Assembly: System.Web (in System.Web.dll)
public: property PersonalizationStateInfo^ default[ String^ path, String^ username ] { PersonalizationStateInfo^ get(String^ path, String^ username); }
Parameters
- path
-
Type:
System::String^
The relative application path of the personalization state object to be retrieved.
- username
-
Type:
System::String^
The user name of the UserPersonalizationStateInfo object to be retrieved.
Property Value
Type: System.Web.UI.WebControls.WebParts::PersonalizationStateInfo^An element from the collection based on the specified parameters.
| Exception | Condition |
|---|---|
| ArgumentNullException | path is null. |
This property is the default indexer for the collection. If only path is provided, the property returns a SharedPersonalizationStateInfo instance. If both path and username are provided, the property returns a UserPersonalizationStateInfo instance for the combination of path and username.
If path (in the case that username is set to null) does not exist, or if username and path do not exist, null is returned.
.NET Framework
Available since 2.0
Available since 2.0
Show: