共用方式為


SPView.AllowsField method

傳回布林值,指出是否可以在檢視中顯示指定的欄位。

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

Syntax

'宣告
Public Function AllowsField ( _
    fldCandidate As SPField _
) As Boolean
'用途
Dim instance As SPView
Dim fldCandidate As SPField
Dim returnValue As Boolean

returnValue = instance.AllowsField(fldCandidate)
public bool AllowsField(
    SPField fldCandidate
)

參數

傳回值

Type: System.Boolean
Boolean
外部的清單,布林值,指出是否可以在檢視中顯示的欄位。非外部清單一定會傳回true。

備註

外部清單,會執行搜尋,以傳回資料的檢視。一般情況下,檢視的搜尋所傳回的欄位集是清單中的欄位集的子集。對於不搜尋所傳回的欄位, AllowsField(SPField)會傳回 false。

請參閱

參照

SPView class

SPView members

Microsoft.SharePoint namespace