SPUtility.IsDesignTimeRender method
會指出目前要求是否執行設計階段內容中。這通常是因為 Web 服務呼叫進行Microsoft SharePoint Foundation-相容的編輯器,例如Microsoft SharePoint Designer 2010。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsDesignTimeRender As Boolean
'用途
Dim returnValue As Boolean
returnValue = SPUtility.IsDesignTimeRender()
public static bool IsDesignTimeRender()
傳回值
Type: System.Boolean
true如果要求執行在設計階段內容中 ;否則,請false。