public class EventLogEntry extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Diagnostics.EventLogEntry
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Diagnostics.EventLog, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Diagnostics.EventLog
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.EventLogEntry
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
EventLogEntry() |
EventLogEntry(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static EventLogEntry |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into EventLogEntry, a cast assert is made to check if types are compatible. |
boolean |
Equals(EventLogEntry otherEntry)
Invokes the .NET member Equals.
|
java.lang.String |
getCategory()
Gets the value of the .NET property Category.
|
short |
getCategoryNumber()
Gets the value of the .NET property CategoryNumber.
|
byte[] |
getData()
Gets the value of the .NET property Data.
|
EventLogEntryType |
getEntryType()
Gets the value of the .NET property EntryType.
|
int |
getEventID()
Gets the value of the .NET property EventID.
|
int |
getIndex()
Gets the value of the .NET property Index.
|
long |
getInstanceId()
Gets the value of the .NET property InstanceId.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
java.lang.String |
getMachineName()
Gets the value of the .NET property MachineName.
|
java.lang.String |
getMessage()
Gets the value of the .NET property Message.
|
java.lang.String[] |
getReplacementStrings()
Gets the value of the .NET property ReplacementStrings.
|
java.lang.String |
getSource()
Gets the value of the .NET property Source.
|
DateTime |
getTimeGenerated()
Gets the value of the .NET property TimeGenerated.
|
DateTime |
getTimeWritten()
Gets the value of the .NET property TimeWritten.
|
java.lang.String |
getUserName()
Gets the value of the .NET property UserName.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public EventLogEntry()
throws java.lang.Throwable
java.lang.Throwablepublic EventLogEntry(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static EventLogEntry cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into EventLogEntry, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEventLogEntry instancejava.lang.Throwable - in case of error during cast operationpublic boolean Equals(EventLogEntry otherEntry) throws java.lang.Throwable
otherEntry - the argument of type EventLogEntryjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getCategory()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
SecurityException,
UnauthorizedAccessException,
IOException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArgumentNullException,
MissingMethodException,
TargetInvocationException,
RankException,
InvalidCastException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itRankException - if the .NET member raises itInvalidCastException - if the .NET member raises itFormatException - if the .NET member raises itpublic short getCategoryNumber()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] getData()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ArgumentNullException,
RankException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
ArrayTypeMismatchException,
InvalidCastException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itpublic EventLogEntryType getEntryType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getEventID()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getIndex()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic long getInstanceId()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic java.lang.String getMachineName()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic java.lang.String getMessage()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
SecurityException,
UnauthorizedAccessException,
IOException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArgumentNullException,
MissingMethodException,
TargetInvocationException,
RankException,
InvalidCastException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itRankException - if the .NET member raises itInvalidCastException - if the .NET member raises itpublic java.lang.String[] getReplacementStrings()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic java.lang.String getSource()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic DateTime getTimeGenerated() throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itpublic DateTime getTimeWritten() throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, NullReferenceException, OverflowException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itOverflowException - if the .NET member raises itpublic java.lang.String getUserName()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ArgumentNullException,
RankException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
ArrayTypeMismatchException,
InvalidCastException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidCastException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying object