TraceEventHandler 委托

命名空间:  Microsoft.AnalysisServices
程序集:  Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)

语法

声明
<GuidAttribute("DE656E6E-B854-4235-804B-F8A9918B45EA")> _
Public Delegate Sub TraceEventHandler ( _
    sender As Object, _
    e As TraceEventArgs _
)
用法
Dim instance As New TraceEventHandler(AddressOf HandlerMethod)
[GuidAttribute("DE656E6E-B854-4235-804B-F8A9918B45EA")]
public delegate void TraceEventHandler(
    Object sender,
    TraceEventArgs e
)
[GuidAttribute(L"DE656E6E-B854-4235-804B-F8A9918B45EA")]
public delegate void TraceEventHandler(
    Object^ sender, 
    TraceEventArgs^ e
)
[<GuidAttribute("DE656E6E-B854-4235-804B-F8A9918B45EA")>]
type TraceEventHandler = 
    delegate of 
        sender:Object * 
        e:TraceEventArgs -> unit
JScript 支持使用委托,但不支持声明新委托。