SPContext.IsDesignTime Property
Gets a Boolean value that indicates whether the Web request is operating in a design-time configuration.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Property Value
Type: System.BooleanIf the value is true, then the Web request is operating in a design-time configuration; otherwise, the value is false.