Data types using C#

Creating a Page folder data type

The sample code and its key pointers in the following sections demonstrate how to create a Page folder data type.

Minimal example

[AutoUpdateble]
[DataScope(DataScopeIdentifier.PublicName)]
[ImmutableTypeId("{500AF1F0-998D-47c8-A411-C42DB7711D43}")]
[DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
public interface IMyDataFolder : IPageFolderData
{
    [StoreFieldType(PhysicalStoreFieldType.String, 255)]
    [ImmutableFieldId("{47459211-C41F-4065-93BE-731E87A991DA}")]
    string Title { get; set; }
}