ITypeLibImporterNotifySink.ReportEvent Metoda

Definicja

Powiadamia obiekt wywołujący, że zdarzenie wystąpiło 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

ImporterEventKindWartość 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ć wynik HRESULT błędu. Każde inne zdarzenie będzie miało wartość 0.

Dotyczy