Udostępnij za pośrednictwem


ITypeLibImporterNotifySink.ReportEvent Metoda

Definicja

Powiadamia obiekt wywołujący o wystąpieniu zdarzenia podczas konwersji biblioteki typów.

public:
 void ReportEvent(System::Runtime::InteropServices::ImporterEventKind eventKind, int eventCode, System::String ^ eventMsg);
public void ReportEvent (System.Runtime.InteropServices.ImporterEventKind eventKind, int eventCode, string eventMsg);
abstract member ReportEvent : System.Runtime.InteropServices.ImporterEventKind * int * string -> unit
Public Sub ReportEvent (eventKind As ImporterEventKind, eventCode As Integer, eventMsg As String)

Parametry

eventKind
ImporterEventKind

Wartość ImporterEventKind wskazująca typ zdarzenia.

eventCode
Int32

Wskazuje dodatkowe informacje o zdarzeniu.

eventMsg
String

Komunikat wygenerowany przez zdarzenie.

Uwagi

Jeśli zgłaszane zdarzenie jest ostrzeżeniem lub błędem, eventCode będzie zawierać hrESULT błędu. Dla każdego innego zdarzenia będzie to 0.

Dotyczy