Condividi tramite


SPField.Group Property

Gets or sets the column group to which the field belongs.

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotEmpty)> _
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.MaxLength, Value := )> _
Public Property Group As String
    Get
    Set
'Usage
Dim instance As SPField
Dim value As String

value = instance.Group

instance.Group = value
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.MaxLength, Value = )]
public string Group { get; set; }

Property Value

Type: System.String

A string that specifies the group of site columns. Default column groups that are used in Microsoft SharePoint Foundation include the following:

  • Base Columns

  • Core Contact and Calendar Columns

  • Core Document Columns

  • Core Task and Issue Columns

  • Custom Columns

  • Extended Columns

  • _Hidden

  • Picture Columns

See Also

Reference

SPField Class

SPField Members

Microsoft.SharePoint Namespace

Other Resources

Introduction to Columns