This documentation is archived and is not being maintained.

PersonalizationProvider::DetermineUserCapabilities Method

Returns a dictionary containing WebPartUserCapability instances that represent the personalization-related capabilities of the currently executing user account.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public:
virtual IDictionary^ DetermineUserCapabilities(
	WebPartManager^ webPartManager
)

Parameters

webPartManager
Type: System.Web.UI.WebControls.WebParts::WebPartManager
The WebPartManager managing the personalization information.

Return Value

Type: System.Collections::IDictionary
An IDictionary containing zero or more WebPartUserCapability instances if the user account is authenticated, or nullptr if the executing user account is not authenticated.

ExceptionCondition
ArgumentException

The page associated with webPartManager is nullptr.

- or -

The request associated with the page is nullptr.

ArgumentNullException

webPartManager is nullptr.

The default implementation of this method consumes the information in the authorization Element for personalization for webParts (ASP.NET Settings Schema) element within the personalization Element for webParts (ASP.NET Settings Schema) element of the webParts Element (ASP.NET Settings Schema) configuration section in the Machine.config or Web.config file to determine a user's authorized capabilities.

The capabilities in the dictionary will be members of the IList object returned by the CreateSupportedUserCapabilities method, which currently include the EnterSharedScopeUserCapability capability and the ModifyStateUserCapability capability.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: