All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.diagnostics.EventLog Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2024 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector v. 1.15.0.0
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.diagnostics;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.componentmodel.Component;
import system.diagnostics.EventLog;
import system.diagnostics.EventSourceCreationData;
import system.diagnostics.OverflowAction;
import system.diagnostics.EventLogEntryType;
import system.diagnostics.EventInstance;
import system.componentmodel.ISynchronizeInvoke;
import system.componentmodel.ISynchronizeInvokeImplementation;
import system.diagnostics.EventLogEntryCollection;
import system.diagnostics.EntryWrittenEventHandler;


/**
 * The base .NET class managing System.Diagnostics.EventLog, System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.
 * 

* * .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.EventLog *

* * Powered by JCOBridge: more info at https://www.jcobridge.com * * @author MASES s.r.l https://masesgroup.com * @version 1.15.0.0 */ public class EventLog extends Component { /** * Fully assembly qualified name: System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 */ public static final String assemblyFullName = "System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"; /** * Assembly name: System.Diagnostics.EventLog */ public static final String assemblyShortName = "System.Diagnostics.EventLog"; /** * Qualified class name: System.Diagnostics.EventLog */ public static final String className = "System.Diagnostics.EventLog"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public EventLog(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link EventLog}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link EventLog} instance * @throws java.lang.Throwable in case of error during cast operation */ public static EventLog cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new EventLog(from.getJCOInstance()); } // Constructors section public EventLog() throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.FormatException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public EventLog(java.lang.String logName, java.lang.String machineName, java.lang.String source) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(logName, machineName, source)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public EventLog(java.lang.String logName, java.lang.String machineName) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.FormatException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(logName, machineName)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public EventLog(java.lang.String logName) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.FormatException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject(logName)); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public static boolean Exists(java.lang.String logName, java.lang.String machineName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.FormatException, system.io.IOException, system.ArrayTypeMismatchException, system.OutOfMemoryException, system.RankException, system.InvalidCastException, system.security.SecurityException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("Exists", logName, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean Exists(java.lang.String logName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.ObjectDisposedException, system.MissingMethodException, system.reflection.TargetInvocationException, system.io.IOException, system.OutOfMemoryException, system.RankException, system.ArrayTypeMismatchException, system.security.SecurityException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("Exists", logName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean SourceExists(java.lang.String source, java.lang.String machineName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.ObjectDisposedException, system.MissingMethodException, system.reflection.TargetInvocationException, system.io.IOException, system.RankException, system.ArrayTypeMismatchException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("SourceExists", source, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean SourceExists(java.lang.String source) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.io.IOException, system.ObjectDisposedException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("SourceExists", source); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static EventLog[] GetEventLogs() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.ObjectDisposedException, system.MissingMethodException, system.reflection.TargetInvocationException, system.io.IOException, system.OutOfMemoryException, system.RankException, system.ArrayTypeMismatchException, system.security.SecurityException, system.UnauthorizedAccessException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classType.Invoke("GetEventLogs"); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(new EventLog(resultingObject)); } EventLog[] resultingArray = new EventLog[resultingArrayList.size()]; resultingArray = resultingArrayList.toArray(resultingArray); return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public static EventLog[] GetEventLogs(java.lang.String machineName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.FormatException, system.io.IOException, system.ArrayTypeMismatchException, system.OutOfMemoryException, system.RankException, system.InvalidCastException, system.security.SecurityException, system.UnauthorizedAccessException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { ArrayList resultingArrayList = new ArrayList(); JCObject resultingObjects = (JCObject)classType.Invoke("GetEventLogs", machineName); for (java.lang.Object resultingObject : resultingObjects) { resultingArrayList.add(new EventLog(resultingObject)); } EventLog[] resultingArray = new EventLog[resultingArrayList.size()]; resultingArray = resultingArrayList.toArray(resultingArray); return resultingArray; } catch (JCNativeException jcne) { throw translateException(jcne); } } public static java.lang.String LogNameFromSourceName(java.lang.String source, java.lang.String machineName) throws Throwable, system.PlatformNotSupportedException, system.ArgumentNullException, system.ArgumentException, system.io.IOException, system.ArgumentOutOfRangeException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (java.lang.String)classType.Invoke("LogNameFromSourceName", source, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void BeginInit() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.io.IOException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.RankException, system.IndexOutOfRangeException, system.ArrayTypeMismatchException, system.InvalidCastException, system.componentmodel.Win32Exception, system.NullReferenceException, system.threading.LockRecursionException, system.threading.SynchronizationLockException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("BeginInit"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void Clear() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.IndexOutOfRangeException, system.FormatException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Clear"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void Close() throws Throwable, system.ObjectDisposedException, system.ArgumentNullException, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.InvalidOperationException, system.componentmodel.Win32Exception, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.NullReferenceException, system.RankException, system.ArrayTypeMismatchException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("Close"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void CreateEventSource(EventSourceCreationData sourceData) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.ArgumentNullException, system.IndexOutOfRangeException, system.FormatException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.io.IOException, system.security.SecurityException, system.UnauthorizedAccessException, system.globalization.CultureNotFoundException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("CreateEventSource", sourceData == null ? null : sourceData.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void CreateEventSource(java.lang.String source, java.lang.String logName, java.lang.String machineName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.OverflowException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("CreateEventSource", source, logName, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void CreateEventSource(java.lang.String source, java.lang.String logName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.globalization.CultureNotFoundException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.OverflowException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("CreateEventSource", source, logName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Delete(java.lang.String logName, java.lang.String machineName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.OutOfMemoryException, system.io.IOException, system.ArrayTypeMismatchException, system.RankException, system.InvalidCastException, system.security.SecurityException, system.componentmodel.Win32Exception, system.UnauthorizedAccessException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Delete", logName, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void Delete(java.lang.String logName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.ObjectDisposedException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.io.IOException, system.RankException, system.ArrayTypeMismatchException, system.security.SecurityException, system.componentmodel.Win32Exception, system.UnauthorizedAccessException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("Delete", logName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void DeleteEventSource(java.lang.String source, java.lang.String machineName) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.ObjectDisposedException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.OutOfMemoryException, system.io.IOException, system.RankException, system.ArrayTypeMismatchException, system.security.SecurityException, system.UnauthorizedAccessException, system.runtime.interopservices.ExternalException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("DeleteEventSource", source, machineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void DeleteEventSource(java.lang.String source) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.ObjectDisposedException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.threading.WaitHandleCannotBeOpenedException, system.io.IOException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.runtime.interopservices.ExternalException, system.ApplicationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("DeleteEventSource", source); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void EndInit() throws Throwable, system.PlatformNotSupportedException, system.ArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NotSupportedException, system.IndexOutOfRangeException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.ArgumentNullException, system.RankException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("EndInit"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ModifyOverflowPolicy(OverflowAction action, int retentionDays) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.InvalidOperationException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ModifyOverflowPolicy", action == null ? null : action.getJCOInstance(), retentionDays); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void RegisterDisplayName(java.lang.String resourceFile, long resourceId) throws Throwable, system.ArgumentException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.ArgumentOutOfRangeException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.InvalidOperationException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("RegisterDisplayName", resourceFile, resourceId); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String message, EventLogEntryType type, int eventID, short category, byte[] rawData) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.componentmodel.InvalidEnumArgumentException, system.IndexOutOfRangeException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", message, type == null ? null : type.getJCOInstance(), eventID, category, rawData); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String dupParam0, EventLogEntryType dupParam1, int dupParam2, short dupParam3, JCORefOut dupParam4) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.componentmodel.InvalidEnumArgumentException, system.IndexOutOfRangeException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", dupParam0, dupParam1 == null ? null : dupParam1.getJCOInstance(), dupParam2, dupParam3, dupParam4.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String message, EventLogEntryType type, int eventID, short category) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", message, type == null ? null : type.getJCOInstance(), eventID, category); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String message, EventLogEntryType type, int eventID) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", message, type == null ? null : type.getJCOInstance(), eventID); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String message, EventLogEntryType type) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", message, type == null ? null : type.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String source, java.lang.String message, EventLogEntryType type, int eventID, short category, byte[] rawData) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", source, message, type == null ? null : type.getJCOInstance(), eventID, category, rawData); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String dupParam0, java.lang.String dupParam1, EventLogEntryType dupParam2, int dupParam3, short dupParam4, JCORefOut dupParam5) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", dupParam0, dupParam1, dupParam2 == null ? null : dupParam2.getJCOInstance(), dupParam3, dupParam4, dupParam5.getJCRefOut()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String source, java.lang.String message, EventLogEntryType type, int eventID, short category) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", source, message, type == null ? null : type.getJCOInstance(), eventID, category); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String source, java.lang.String message, EventLogEntryType type, int eventID) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", source, message, type == null ? null : type.getJCOInstance(), eventID); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String source, java.lang.String message, EventLogEntryType type) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", source, message, type == null ? null : type.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEntry(java.lang.String source, java.lang.String message) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEntry", source, message); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEntry(java.lang.String message) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.FormatException, system.IndexOutOfRangeException, system.componentmodel.InvalidEnumArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEntry", message); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEvent(EventInstance instance, byte[] data, NetObject... values) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.io.IOException, system.ObjectDisposedException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.ApplicationException, system.componentmodel.Win32Exception { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEvent", instance == null ? null : instance.getJCOInstance(), data, toObjectFromArray(values)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEvent(EventInstance dupParam0, JCORefOut dupParam1, NetObject... dupParam2) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.io.IOException, system.ObjectDisposedException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.NullReferenceException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.ApplicationException, system.componentmodel.Win32Exception { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEvent", dupParam0 == null ? null : dupParam0.getJCOInstance(), dupParam1.getJCRefOut(), toObjectFromArray(dupParam2)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void WriteEvent(EventInstance instance, NetObject... values) throws Throwable, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.FormatException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.threading.WaitHandleCannotBeOpenedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.ApplicationException, system.componentmodel.Win32Exception, system.MissingMethodException, system.reflection.TargetInvocationException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("WriteEvent", instance == null ? null : instance.getJCOInstance(), toObjectFromArray(values)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEvent(java.lang.String source, EventInstance instance, byte[] data, NetObject... values) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEvent", source, instance == null ? null : instance.getJCOInstance(), data, toObjectFromArray(values)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEvent(java.lang.String dupParam0, EventInstance dupParam1, JCORefOut dupParam2, NetObject... dupParam3) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEvent", dupParam0, dupParam1 == null ? null : dupParam1.getJCOInstance(), dupParam2.getJCRefOut(), toObjectFromArray(dupParam3)); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void WriteEvent(java.lang.String source, EventInstance instance, NetObject... values) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.IndexOutOfRangeException, system.io.IOException, system.OutOfMemoryException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArrayTypeMismatchException, system.threading.WaitHandleCannotBeOpenedException, system.runtime.interopservices.ExternalException, system.ApplicationException, system.componentmodel.Win32Exception { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("WriteEvent", source, instance == null ? null : instance.getJCOInstance(), toObjectFromArray(values)); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public boolean getEnableRaisingEvents() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("EnableRaisingEvents"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setEnableRaisingEvents(boolean EnableRaisingEvents) throws Throwable, system.PlatformNotSupportedException, system.ArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NotSupportedException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.threading.WaitHandleCannotBeOpenedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("EnableRaisingEvents", EnableRaisingEvents); } catch (JCNativeException jcne) { throw translateException(jcne); } } public int getMinimumRetentionDays() throws Throwable, system.security.SecurityException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.InvalidOperationException, system.ArrayTypeMismatchException, system.ArgumentException, system.io.IOException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (int)classInstance.Get("MinimumRetentionDays"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public long getMaximumKilobytes() throws Throwable, system.security.SecurityException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.InvalidOperationException, system.ArrayTypeMismatchException, system.ArgumentException, system.io.IOException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (long)classInstance.Get("MaximumKilobytes"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setMaximumKilobytes(long MaximumKilobytes) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.NotSupportedException, system.InvalidOperationException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.io.IOException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("MaximumKilobytes", MaximumKilobytes); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ISynchronizeInvoke getSynchronizingObject() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("SynchronizingObject"); return new ISynchronizeInvokeImplementation(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setSynchronizingObject(ISynchronizeInvoke SynchronizingObject) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("SynchronizingObject", SynchronizingObject == null ? null : SynchronizingObject.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public EventLogEntryCollection getEntries() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("Entries"); return new EventLogEntryCollection(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public OverflowAction getOverflowAction() throws Throwable, system.security.SecurityException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.InvalidOperationException, system.ArrayTypeMismatchException, system.ArgumentException, system.io.IOException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("OverflowAction"); return new OverflowAction(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getLog() throws Throwable, system.PlatformNotSupportedException, system.ArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Log"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setLog(java.lang.String Log) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.threading.WaitHandleCannotBeOpenedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Log", Log); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getLogDisplayName() throws Throwable, system.PlatformNotSupportedException, system.ArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NotSupportedException, system.IndexOutOfRangeException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.RankException, system.ArrayTypeMismatchException, system.InvalidCastException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("LogDisplayName"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getMachineName() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("MachineName"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setMachineName(java.lang.String MachineName) throws Throwable, system.ArgumentException, system.NotSupportedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.FormatException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.OutOfMemoryException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.threading.WaitHandleCannotBeOpenedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("MachineName", MachineName); } catch (JCNativeException jcne) { throw translateException(jcne); } } public java.lang.String getSource() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (java.lang.String)classInstance.Get("Source"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setSource(java.lang.String Source) throws Throwable, system.PlatformNotSupportedException, system.ArgumentException, system.io.IOException, system.ObjectDisposedException, system.security.SecurityException, system.UnauthorizedAccessException, system.ArgumentOutOfRangeException, system.OutOfMemoryException, system.NotSupportedException, system.IndexOutOfRangeException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.componentmodel.Win32Exception, system.NullReferenceException, system.threading.WaitHandleCannotBeOpenedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("Source", Source); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section public void addEntryWritten(EntryWrittenEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("EntryWritten", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeEntryWritten(EntryWrittenEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("EntryWritten", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy