共用方式為


SPContext.IsDesignTime property

取得Boolean值,指出 Web 要求是否操作在設計階段設定。

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

Syntax

'宣告
Public ReadOnly Property IsDesignTime As Boolean
    Get
'用途
Dim instance As SPContext
Dim value As Boolean

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

Property value

Type: System.Boolean
如果value為 true,然後 Web 要求操作在設計階段設定 ;否則,則值為false。

備註

在執行階段使用某些網頁組件物件是很類似,但不是太一樣,設計階段物件。

請參閱

參照

SPContext class

SPContext members

Microsoft.SharePoint namespace

SPListItem

WebPartManager