共用方式為


SPContext.RenderingFromCurrentMetainfo property

取得值,這個值,指出頁面呈現最佳化是否作用中的目前內容。

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

Syntax

'宣告
Public Shared Property RenderingFromCurrentMetainfo As Boolean
    Get
    Set
'用途
Dim value As Boolean

value = SPContext.RenderingFromCurrentMetainfo

SPContext.RenderingFromCurrentMetainfo = value
public static bool RenderingFromCurrentMetainfo { get; set; }

Property value

Type: System.Boolean
true如果頁面呈現最佳化才會生效。否則, false。

請參閱

參照

SPContext class

SPContext members

Microsoft.SharePoint namespace