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
)
參數
fields
Type: Microsoft.SharePoint.SPFieldCollection要新增此欄位的欄位集合。
fieldName
Type: System.String欄位的名稱。
Exceptions
Exception | Condition |
---|---|
SPException | 集合中找不到名稱fieldname的欄位。 |