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)
Available in Sandboxed Solutions: No
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.