WebPartAdder.AllowWebPartImport 属性

获取或设置一个标志,指示是否允许用户导入当前页上的新 Web 部件。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property AllowWebPartImport As Boolean
    Get
    Set
用法
Dim instance As WebPartAdder
Dim value As Boolean

value = instance.AllowWebPartImport

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

属性值

类型:System.Boolean
true如果允许用户导入当前页,则在新的 Web 部件否则为false。默认值为true。

另请参阅

引用

WebPartAdder 类

WebPartAdder 成员

Microsoft.SharePoint.WebPartPages 命名空间