IncludeHiddenContentTypes (SPMetal)
Applies to: SharePoint Foundation 2010
Specifies that SPMetal generates classes for hidden content types.
Web (SPMetal)
IncludeHiddenContentTypes (SPMetal)
<IncludeHiddenContentTypes />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
Specifies the name and access level (public or internal) of the class (derived from DataContext) that SPMetal generates. |
Remarks
A Web element cannot have both an ExcludeOtherContentTypes element and an IncludeHiddenContentTypes element.
Example
The following is an example of a IncludeHiddenContentTypes element in use.
<?xml version="1.0" encoding="utf-8"?>
<Web AccessModifier="Internal" xmlns="https://schemas.microsoft.com/SharePoint/2009/spmetal">
<ContentType Name="Contact" Class="Contact">
<Column Name="ContId" Member="ContactId" />
<Column Name="ContactName" Member="ContactName1" />
<Column Name="Category" Member="Cat" Type="String"/>
<ExcludeColumn Name="HomeTelephone" />
</ContentType>
<IncludeHiddenContentTypes />
<List Name="Team Members">
<ContentType Name="Item" Class="TeamMember" />
</List>
</Web>