Share via


IDefineEvent.AddEvent(String, Int32) 方法

定义

由活动脚本宿主用于定义事件。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Object ^ AddEvent(System::String ^ code, int startLine);
public object AddEvent (string code, int startLine);
abstract member AddEvent : string * int -> obj
Public Function AddEvent (code As String, startLine As Integer) As Object

参数

code
String

包含事件的代码。

startLine
Int32

此代码开始所在的行号。

返回

事件(如果已成功添加)。

适用于