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 SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.