Поделиться через


SPFieldMultiColumn Class

Represents a multicolumn field type.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPField
    Microsoft.SharePoint.SPFieldMultiColumn

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class SPFieldMultiColumn _
    Inherits SPField

Dim instance As SPFieldMultiColumn
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class SPFieldMultiColumn : SPField

Remarks

An SPFieldMulitColumn object emulates a field that contains multiple values. In actuality, the class contains a single string value, in which the values of the various "columns" are separated by special delimiter characters.

In Windows SharePoint Services 3.0, data for SPFieldMultiColumn fields is stored in the content database as a non-sortable SQL data type. For that reason, columns based on the SPFieldMultiColumn field type or on custom field types derived from it are not sortable. You can overcome this lack of direct sortability by using a "related field". See Custom Related Fields.

Notes to Inheritors

In Windows SharePoint Services 3.0, columns based on custom field types do not appear in Datasheet view and are not included when you export a list to a Microsoft Excel spreadsheet.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPFieldMultiColumn Members

Microsoft.SharePoint Namespace