IVsaSite.GetEventSourceInstance 方法
获取对先前使用 AddEventSource 方法添加到脚本引擎中的事件源的引用。
命名空间: Microsoft.Vsa
程序集: Microsoft.Vsa(在 Microsoft.Vsa.dll 中)
语法
声明
Function GetEventSourceInstance ( _
itemName As String, _
eventSourceName As String _
) As Object
Object GetEventSourceInstance(
string itemName,
string eventSourceName
)
Object^ GetEventSourceInstance(
String^ itemName,
String^ eventSourceName
)
abstract GetEventSourceInstance :
itemName:string *
eventSourceName:string -> Object
function GetEventSourceInstance(
itemName : String,
eventSourceName : String
) : Object
参数
itemName
类型:String指定的项名称。
eventSourceName
类型:String指定的事件源名称。
返回值
类型:Object
将事件源返回到引擎。