Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in .NET » MobiLink server API for .NET reference » ServerContext interface

 

GetStartClassInstances method

Syntax
object[ ] GetStartClassInstances( )
Member of iAnywhere.MobiLink.Script.ServerContext
Remarks

Gets an array of the start classes that were constructed at server start time. The array length is zero if there are no start classes.

For more information about user-defined start classes, see User-defined start classes.

The following is an example of getStartClassInstances():

void FindStartClass(ServerContext sc, string name) {
    object[] startClasses = sc.GetStartClassInstances();
    foreach (object obj in startClasses) {
        if (obj is MyClass) {
           // Execute some code.
        }
    }
}