WebPartPersonalization.InitialScope Property
Assembly: System.Web (in system.web.dll)
public: virtual property PersonalizationScope InitialScope { PersonalizationScope get (); void set (PersonalizationScope value); }
/** @property */ public PersonalizationScope get_InitialScope () /** @property */ public void set_InitialScope (PersonalizationScope value)
public function get InitialScope () : PersonalizationScope public function set InitialScope (value : PersonalizationScope)
Property Value
The PersonalizationScope indicating the default personalization scope of the associated WebPartManager.| Exception type | Condition |
|---|---|
| An attempt was made to set this property to a value other than its current value after the associated WebPartManager control's OnInit method had completed. | |
| An attempt was made to set a value of InitialScope that is not a member of the PersonalizationScope enumeration. |
This property represents the default personalization scope that should be used for the parent WebPartManager control in the absence of previous knowledge about the proper scope. If this property is not explicitly set, it defaults to returning User scope.
This property can only be set prior to the completion of the WebPartManager control's OnInit method. In practice, this means InitialScope must be set in the page markup on the WebPartManager element. Alternatively, this property can be set during the PreInit phase of the WebPartManager control.
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.