Compartilhar via


SPContentType.Group Property

Gets and sets the content type group to which the content type is assigned.

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

Syntax

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

value = instance.Group

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

Property Value

Type: System.String
The name of a content type group.

Remarks

Content type groups are user-defined groups that help you organize your columns into logical categories.

See Also

Reference

SPContentType Class

SPContentType Members

Microsoft.SharePoint Namespace

Other Resources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy