Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
使用此系统过程将 .NET 方法注册为连接事件的脚本,或将 .NET 方法注销,不再作为连接事件的脚本。
ml_add_dnet_connection_script ( 'version', 'event', 'script' )
version
VARCHAR(128)。版本名称。
event
VARCHAR(128)。事件名称。
脚本
TEXT。脚本内容。如果是 Adaptive Server Enterprise,此参数为 VARCHAR(16384)。如果是 IBM DB2 LUW,此参数为 VARCHAR(4000)。如果是 Oracle,此参数为 CLOB。
要注销某个方法,请将脚本内容参数设置为空值。
脚本内容值是 .NET 程序集某个类中的公共方法(例如,MyClass.MyMethod)。
调用 ml_add_dnet_connection_script 时,该方法将与您指定的事件和脚本版本关联。如果版本名是新的,则会自动插入到 ml_version 表中。
以下示例为 begin_download 事件注册 ExampleClass 类的 beginDownloadConnection 方法。
call ml_add_dnet_connection_script( 'ver1', 'begin_download', 'ExamplePackage.ExampleClass.beginDownloadConnection' );