PersonalizationProvider.DetermineUserCapabilities Method

Note: This method is new in the .NET Framework version 2.0.

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
)
public IDictionary DetermineUserCapabilities (
	WebPartManager webPartManager
)
public function DetermineUserCapabilities (
	webPartManager : WebPartManager
) : IDictionary

Parameters

webPartManager

The WebPartManager managing the personalization information.

Return Value

An IDictionary containing zero or more WebPartUserCapability instances if the user account is authenticated, or a null reference (Nothing in Visual Basic) if the executing user account is not authenticated.

Exception typeCondition

ArgumentException

The page associated with webPartManager is a null reference (Nothing in Visual Basic).

- or -

The request associated with the page is a null reference (Nothing in Visual Basic).

ArgumentNullException

webPartManager is a null reference (Nothing in Visual Basic).

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 thewebParts 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.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: