共用方式為


SPField.LinkToItem Property

Indicates whether the field should show the link to the display form when displayed in an [XsltListView]. This value can only be set if this object’s LinkToItemAllowed is set to Allowed.

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

Syntax

'Declaration
Public Property LinkToItem As Boolean
    Get
    Set
'Usage
Dim instance As SPField
Dim value As Boolean

value = instance.LinkToItem

instance.LinkToItem = value
public bool LinkToItem { get; set; }

Property Value

Type: System.Boolean
A Boolean indicating field display status. If this object’s LinkToItemAllowed is set to Prohibited then this value is always false. If this object’s LinkToItemAllowed is set to Required then this value is always true.

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace