WebPartAdder.AllowWebPartImport property

Gets or sets a flag that indicates whether the user is allowed to import new Web Parts on the current page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property AllowWebPartImport As Boolean
    Get
    Set
'Usage
Dim instance As WebPartAdder
Dim value As Boolean

value = instance.AllowWebPartImport

instance.AllowWebPartImport = value
public bool AllowWebPartImport { get; set; }

Property value

Type: System.Boolean
true if the user is allowed to import a new Web Part on the current page; otherwise, false. The default is true.

See also

Reference

WebPartAdder class

WebPartAdder members

Microsoft.SharePoint.WebPartPages namespace