共用方式為


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
)

參數

  • typeName
    Type: System.String

    指定的欄位型別定義,例如, SPFieldType.Text.ToString()名稱的字串

  • displayName
    Type: System.String

    字串,包含新的欄位的顯示名稱。

請參閱

參照

SPFieldText class

SPFieldText members

SPFieldText overload

Microsoft.SharePoint namespace