PersonalizationStateInfoCollection::Item Property (String, String)
Gets an element from the collection based on the specified parameters.
Assembly: System.Web (in System.Web.dll)
public: property PersonalizationStateInfo^ Item[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::PersonalizationStateInfoA PersonalizationStateInfo.
| Exception | Condition |
|---|---|
| ArgumentNullException | path is nullptr. |
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 nullptr) does not exist, or if username and path do not exist, nullptr is returned.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.