WebPart.EffectiveStorage 属性

获取是否返回 Web 部件的实例作为个人实例存储或共享实例。

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

语法

声明
Public ReadOnly Property EffectiveStorage As Storage
    Get
用法
Dim instance As WebPart
Dim value As Storage

value = instance.EffectiveStorage
public Storage EffectiveStorage { get; }

属性值

类型:Microsoft.SharePoint.WebPartPages.Storage
Storage 枚举,指定如何存储当前 Web 部件。

备注

开发人员可以使用此属性确定当前要在其中呈现 Web 部件的模式 (个人视图 = Storage.Personal或共享视图 = Storage.Shared),并使用这些信息创建的每种模式的不同行为。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间