指示是否在设计时的上下文中运行当前请求。这通常是因为 Web 服务调用由Microsoft SharePoint Foundation-兼容的编辑器,例如Microsoft SharePoint Designer 2010。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function IsDesignTimeRender As Boolean
用法
Dim returnValue As Boolean
returnValue = SPUtility.IsDesignTimeRender()
public static bool IsDesignTimeRender()
返回值
类型:System.Boolean
true如果请求运行在设计时上下文 ;否则为false。