共用方式為


SPUtility.IsDesignTimeRender Method

Indicates whether the current request is run in a design-time context. Usually this is because a Web service call is made by a Microsoft SharePoint Foundation-compatible editor, for example Microsoft SharePoint Designer 2010.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Function IsDesignTimeRender As Boolean
'Usage
Dim returnValue As Boolean

returnValue = SPUtility.IsDesignTimeRender()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static bool IsDesignTimeRender()

Return Value

Type: System.Boolean
true if the request is run in a design-time context; otherwise, false.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace