SPWebPartManager.SetIsIncludedFilter Method
Sets an arbitrary string to determine whether a Web Part is authorized to be added to a page.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub SetIsIncludedFilter ( _
part As WebPart, _
value As String _
)
'Usage
Dim part As WebPart
Dim value As StringSPWebPartManager.SetIsIncludedFilter(part, value)
public static void SetIsIncludedFilter(
WebPart part,
string value
)
Parameters
part
Type: System.Web.UI.WebControls.WebParts.WebPartThe Web Part for which the arbitrary string is being set.
value
Type: System.StringAn arbitrary string to determine whether a Web Part is authorized to be added to a page.
Remarks
This method sets a Web Part’s AuthorizationFilter property to value after validating that the value passed in is valid.