Classes

  ClassDescription
Public classBuildNewHandlerAttribute
This attribute is used to override the default behavior when creating new data items. See IBuildNewHandler for mor information on this subject.
Public classDataConnection
Represents a connection to the Composite C1 data system.
Public classDataEventArgs
This class contains information for several data events.
Public classDataEvents<(Of <(<'TData>)>)>
This class contains all the event fired by C1 when changes are made to data items.
Public classPageNode
Represents a page in the Composite C1 sitemap hierarchy.
Public classSitemapNavigator
Provide access to the Composite C1 sitemap structure and primary page attributes.

Interfaces

  InterfaceDescription
Public interfaceIBuildNewHandler
This interface is used togehter with the attribute BuildNewHandlerAttribute. It is possible to overwrite the default behavior when a new data item is created through the method New<(Of <<'(TData>)>>)()()()() To do this, you have to implement this interface and attach it to your IData type by using the attribute BuildNewHandlerAttribute

Examples

CopyC#
[BuildNewHandlerAttribute(typeof(MyBuildNewHandler))
[AutoUpdateble]
[KeyPropertyName("Id")]
[DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
[ImmutableTypeId("{10D6CA29-5B01-45EE-9405-9B027F4C949C}")]    
interface IMyDataType : IData
{
    [StoreFieldType(PhysicalStoreFieldType.Guid)]
    [ImmutableFieldId("{B99F4AF2-859D-4235-887B-E5A06BBB9892}")]
    Guid Id { get; set; }

    [StoreFieldType(PhysicalStoreFieldType.String, 256)]
    [ImmutableFieldId("{A8127C77-5083-4409-9EA6-1E3BB696310D}")]
    string Name { get; set; }
}

class MyBuildNewHandler : IBuildNewHandler
{
    public Type GetTypeToBuild(Type dataType)
    {
        /* dataType will always be typeof(IMyDataType) */

        return typeof(MyDataType);
    }
}


class MyDataType : IMyDataType
{
    puglic MyDataType()
    {
        /* All new instances of IMyDataType will becrated through this constructor */
        this.Id = Guid.NewGuid();
        this.Name = "RandomName";
    }

    public Id { get; set; }

    public Name { get; set; }
}

Delegates

  DelegateDescription
Public delegateDataEventHandler
The event handle type for several storage events.

Enumerations

  EnumerationDescription
Public enumerationPublicationScope
Define the scope of data in relation to publication status. Data which support publication should always be maintained in the “Unpublihed” scope, while reading data on the public website should always be done in the “Published” scope. Correct setting of the PublicationScope is typically handled by Composite C1 and should in general not be changed by developers. Setting an explicit PublicationScope is typically only needed on new service end-points or if specific features relating to data updating / publication is desired. See DataConnection
Public enumerationSitemapScope
Define a set of elements in a tree structure, relative to a particular node.