MindFusion.Wpf Pack Programmer's Guide
Schedule.RegisterResourceClass Method (Type, String, Int32)
See Also
 





Registers a resource class for serialization support.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.Wpf

 Syntax

C#  Copy Code

public static void RegisterResourceClass (
    Type resourceClass,
    string classId,
    int classVersion
)

Visual Basic  Copy Code

Public Shared Sub RegisterResourceClass( _
    resourceClass As Type, _
    classId As String, _
    classVersion As Integer _
)

 Parameters

resourceClass

A Type instance identifying the resource class.

classId

A class identifier to use when saving and loading resources of the specified type.

classVersion

A revision number of the resource's class serialization format.

 Remarks

When using custom resource classes, use this method to enable saving and loading the custom resource objects to/from XML or binary files. The class id string is written before each resource's data, and when loading resources later that string indicates to the schedule what class instance to create and let it load the subsequent data. The following class identifiers are reserved and should not be used: 'std:appointment', 'std:resource', 'std:contact', 'std:location' and 'std:task'.

The version identifier must be increased when the format in which resources are saved changes. It is used when loading files to let your application load resources data from an older format.

 Note

All custom resource classes must provide a parameterless constructor. Failing to do so would result in exceptions during the load process, since the schedule will be unable to create custom resources.

 See Also

RegisterResourceClass Method Overload List
Schedule Members
Schedule Class
MindFusion.Scheduling Namespace