次の方法で共有


ITypeLibExporterNotifySink.ReportEvent メソッド

アセンブリの変換中に発生したイベントを呼び出し元に通知します。

Sub ReportEvent( _
   ByVal eventKind As ExporterEventKind, _   ByVal eventCode As Integer, _   ByVal eventMsg As String _)
[C#]
void ReportEvent(
   ExporterEventKindeventKind,inteventCode,stringeventMsg);
[C++]
void ReportEvent(
   ExporterEventKindeventKind,inteventCode,String* eventMsg);
[JScript]
function ReportEvent(
   eventKind : ExporterEventKind,eventCode : int,eventMsg : String);

パラメータ

  • eventKind
    イベントの種類を示す ExporterEventKind 値。
  • eventCode
    イベントに関する補足情報を示します。
  • eventMsg
    イベントによって生成されるメッセージ。

解説

レポートするイベントが警告またはエラーの場合、 eventCode にはそのエラーの HRESULT が格納されます。その他のイベントの場合は、格納される値は 0 になります。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ITypeLibExporterNotifySink インターフェイス | ITypeLibExporterNotifySink メンバ | System.Runtime.InteropServices 名前空間