다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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