PersonalizationState.GetAuthorizationFilter Method
Assembly: System.Web (in system.web.dll)
public abstract String GetAuthorizationFilter ( String webPartID )
public abstract function GetAuthorizationFilter ( webPartID : String ) : String
Parameters
- webPartID
The ID of the Web Parts control from which the AuthorizationFilter is retrieved.
Return Value
The authorization filter string for a Web Parts control.This method returns the AuthorizationFilter string for a WebPart control before an instance of it is created. This method should return a null reference (Nothing in Visual Basic) if there is no personalized value for the AuthorizationFilter property.
The Web Parts control set does not implement any default behavior for the AuthorizationFilter property. The property is provided so that a developer can assign an arbitrary string value to a custom WebPart control; this property can be checked by subscribing to the AuthorizeWebPart event on the WebPartManager control on a page to determine whether the control can be added to the page.
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.