共用方式為


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 支援委託的使用,但不支援新委託的宣告。