Compartilhar via


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

  • value
    Type: System.String

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

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace