共用方式為


SPFieldCollection.GetFieldByInternalName method

從集合中傳回具有指定的內部名稱的欄位。

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

Syntax

'宣告
Public Function GetFieldByInternalName ( _
    strName As String _
) As SPField
'用途
Dim instance As SPFieldCollection
Dim strName As String
Dim returnValue As SPField

returnValue = instance.GetFieldByInternalName(strName)
public SPField GetFieldByInternalName(
    string strName
)

參數

  • strName
    Type: System.String

    字串,指定欄位的內部名稱。

傳回值

Type: Microsoft.SharePoint.SPField
SPField 物件,表示該欄位。

Exceptions

Exception Condition
ArgumentException

具有該名稱沒有欄位存在集合中。

請參閱

參照

SPFieldCollection class

SPFieldCollection members

Microsoft.SharePoint namespace

InternalName