Share via


The Registration Content Type

The Register for a Course Use Case relies on a registration list that contains registration list items.

The Registration content type is named RegistrationContentType. It is defined in Contoso.TrainingManagement\Content\Types\RegistrationContentType.xml. It inherits from the base content type, which is Item. The data elements of the content type are defined with the Field Ref element. Each Field Ref element refers to a type definition that is provided by a Field element. The Field elements are not nested within the Content Type element scope. This allows the Field type definitions to be used in more than one content type. The following is an example of a Field element.

<Field ID="{11b6eba7-d1a1-4d15-9770-645052681e40}" Type="Integer" Name="CourseId" DisplayName="Course Id" Hidden="TRUE" Required="TRUE" Sealed="TRUE" ShowInEditForm="FALSE" DisplaceOnUpgrade="TRUE" />

The following is the corresponding Field Ref element.

<FieldRef ID="{11b6eba7-d1a1-4d15-9770-645052681e40}" Name="CourseId" />

For more information about content types, see Content Type on MSDN. For information about how to create a custom content type, see How to: Create a Custom Content Type with Event Receivers.

Home page on MSDN | Community site