SPContext.IsDesignTime 属性

获取一个Boolean值,该值指示是否在设计时配置中运行的 Web 请求。

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

语法

声明
Public ReadOnly Property IsDesignTime As Boolean
    Get
用法
Dim instance As SPContext
Dim value As Boolean

value = instance.IsDesignTime
public bool IsDesignTime { get; }

属性值

类型:System.Boolean
如果value为 true,则该 Web 请求操作系统在设计时配置 ;否则,值为false。

备注

某些 Web 部件对象在运行时使用的是类似的但不是等于设计时对象。

另请参阅

引用

SPContext 类

SPContext 成员

Microsoft.SharePoint 命名空间

SPListItem

WebPartManager