次の方法で共有


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 はデリゲートの使用をサポートしていますが、新規の宣言はサポートしていません。