SPFieldIndex.GetField method
擷取SPFieldIndex中的指定索引處的欄位的識別的項 (ID)。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetField ( _
index As Integer _
) As Guid
'用途
Dim instance As SPFieldIndex
Dim index As Integer
Dim returnValue As Guid
returnValue = instance.GetField(index)
public Guid GetField(
int index
)
參數
index
Type: System.Int32以零起始的索引值,識別要找到該欄位的位置。
傳回值
Type: System.Guid
欄位的 ID。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index是負數或大於欄位數目。 |