Share via


SPContext.IsDesignTime property

Gets a Boolean value that indicates whether the Web request is operating in a design-time configuration.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property IsDesignTime As Boolean
    Get
'Usage
Dim instance As SPContext
Dim value As Boolean

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

Property value

Type: System.Boolean
If the value is true, then the Web request is operating in a design-time configuration; otherwise, the value is false.

Remarks

Some Web Part objects that are used at run time are similar, but not identical to, design-time objects.

See also

Reference

SPContext class

SPContext members

Microsoft.SharePoint namespace

SPListItem

WebPartManager