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

SQL Anywhere 17 » MobiLink - Server Administration » MobiLink reference » MobiLink server system procedures

ml_add_dnet_connection_script system procedure

Register or unregister a .NET method as the script for a connection event.

Syntax
ml_add_dnet_connection_script ( 
'version', 
'event', 
'script'  
)
Parameters
Syntax Description
version

VARCHAR(128). The version name.

event

VARCHAR(128). The event name.

script

TEXT. The script contents. For Adaptive Server Enterprise, this parameter is VARCHAR(16384). For IBM DB2 LUW, this parameter is VARCHAR(4000). For Oracle, this parameter is CLOB.

Remarks

To unregister a method, set the script contents parameter to null.

The script contents value is a public method in a class in a .NET assembly (for example, MyClass.MyMethod).

When you call ml_add_dnet_connection_script, the method is associated with the event and script version that you specify. If the version name is new, it is automatically inserted into the ml_version table.

Example

The following example registers the beginDownloadConnection method of the ExampleClass class for the begin_download event.

call ml_add_dnet_connection_script( 'ver1',
'begin_download',
'ExamplePackage.ExampleClass.beginDownloadConnection' );