共用方式為


SPFieldCollection.Item Property (Guid)

Gets the field with the specified identifier (ID) from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    id As Guid _
) As SPField
    Get
'Usage
Dim instance As SPFieldCollection
Dim id As Guid
Dim value As SPField

value = instance.Item(id)
public SPField this[
    Guid id
] { get; }

Parameters

  • id
    Type: System.Guid

    A System.Guid object that specifies the field ID.

Property Value

Type: Microsoft.SharePoint.SPField
An SPField object that represents the field.

See Also

Reference

SPFieldCollection Class

SPFieldCollection Members

Item Overload

Microsoft.SharePoint Namespace