SPFieldText constructor (SPFieldCollection, String, String)
初始化根據指定的欄位集合、 型別名稱和顯示名稱的SPFieldText類別的新執行個體。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
fields As SPFieldCollection, _
typeName As String, _
displayName As String _
)
'用途
Dim fields As SPFieldCollection
Dim typeName As String
Dim displayName As String
Dim instance As New SPFieldText(fields, _
typeName, displayName)
public SPFieldText(
SPFieldCollection fields,
string typeName,
string displayName
)
參數
fields
Type: Microsoft.SharePoint.SPFieldCollectionSPFieldCollection物件,表示要在其中建立文字欄位的欄位集合。
typeName
Type: System.String指定的欄位型別定義,例如, SPFieldType.Text.ToString()名稱的字串
displayName
Type: System.String字串,包含新的欄位的顯示名稱。