共用方式為


SPField constructor (SPFieldCollection, String)

初始化根據指定的欄位集合物件和欄位名稱的SPField類別的新執行個體。

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

Syntax

'宣告
Public Sub New ( _
    fields As SPFieldCollection, _
    fieldName As String _
)
'用途
Dim fields As SPFieldCollection
Dim fieldName As String

Dim instance As New SPField(fields, _
    fieldName)
public SPField(
    SPFieldCollection fields,
    string fieldName
)

參數

Exceptions

Exception Condition
SPException

集合中找不到名稱fieldname的欄位。

請參閱

參照

SPField class

SPField members

SPField overload

Microsoft.SharePoint namespace