共用方式為


SPContext.ViewContext property

取得提供目前檢視的相關資訊的檢視內容物件。

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

Syntax

'宣告
Public ReadOnly Property ViewContext As SPViewContext
    Get
'用途
Dim instance As SPContext
Dim value As SPViewContext

value = instance.ViewContext
public SPViewContext ViewContext { get; }

Property value

Type: Microsoft.SharePoint.SPViewContext
SPViewContext 物件,提供檢視的相關資訊。

請參閱

參照

SPContext class

SPContext members

Microsoft.SharePoint namespace