public class EventLogSession extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Diagnostics.Eventing.Reader.EventLogSession
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=8.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.Eventing.Reader.EventLogSession
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
EventLogSession()
Initializes a new instance by invoking the .NET constructor.
|
EventLogSession(java.lang.Object instance)
Internal constructor.
|
EventLogSession(java.lang.String server)
Initializes a new instance by invoking the .NET constructor.
|
EventLogSession(java.lang.String server,
java.lang.String domain,
java.lang.String user,
SecureString password,
SessionAuthentication logOnType)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CancelCurrentOperations()
Invokes the .NET member CancelCurrentOperations.
|
static EventLogSession |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into EventLogSession, a cast assert is made to check if types are compatible. |
void |
ClearLog(java.lang.String logName)
Invokes the .NET member ClearLog.
|
void |
ClearLog(java.lang.String logName,
java.lang.String backupPath)
Invokes the .NET member ClearLog.
|
void |
close() |
void |
Dispose()
Invokes the .NET member Dispose.
|
void |
ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
Invokes the .NET member ExportLog.
|
void |
ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors)
Invokes the .NET member ExportLog.
|
void |
ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
Invokes the .NET member ExportLogAndMessages.
|
void |
ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors,
CultureInfo targetCultureInfo)
Invokes the .NET member ExportLogAndMessages.
|
static EventLogSession |
getGlobalSession()
Gets the value of the .NET property GlobalSession.
|
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. |
EventLogInformation |
GetLogInformation(java.lang.String logName,
PathType pathType)
Invokes the .NET member GetLogInformation.
|
IEnumerable_1 |
GetLogNames()
Invokes the .NET member GetLogNames.
|
IEnumerable_1 |
GetProviderNames()
Invokes the .NET member GetProviderNames.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public EventLogSession()
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic EventLogSession(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 EventLogSession(java.lang.String server)
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
server - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic EventLogSession(java.lang.String server,
java.lang.String domain,
java.lang.String user,
SecureString password,
SessionAuthentication logOnType)
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
server - the argument of type java.lang.Stringdomain - the argument of type java.lang.Stringuser - the argument of type java.lang.Stringpassword - the argument of type SecureStringlogOnType - the argument of type SessionAuthenticationjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void CancelCurrentOperations()
throws java.lang.Throwable,
ObjectDisposedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic static EventLogSession cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into EventLogSession, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEventLogSession instancejava.lang.Throwable - in case of error during cast operationpublic void ClearLog(java.lang.String logName)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ObjectDisposedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
logName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void ClearLog(java.lang.String logName,
java.lang.String backupPath)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
logName - the argument of type java.lang.StringbackupPath - the argument of type java.lang.Stringjava.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 itArgumentNullException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
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 itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ObjectDisposedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
path - the argument of type java.lang.StringpathType - the argument of type PathTypequery - the argument of type java.lang.StringtargetFilePath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
path - the argument of type java.lang.StringpathType - the argument of type PathTypequery - the argument of type java.lang.StringtargetFilePath - the argument of type java.lang.StringtolerateQueryErrors - the argument of type booleanjava.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 itArgumentNullException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
throws java.lang.Throwable,
ArgumentNullException,
OutOfMemoryException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ObjectDisposedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
path - the argument of type java.lang.StringpathType - the argument of type PathTypequery - the argument of type java.lang.StringtargetFilePath - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors,
CultureInfo targetCultureInfo)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
ObjectDisposedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
path - the argument of type java.lang.StringpathType - the argument of type PathTypequery - the argument of type java.lang.StringtargetFilePath - the argument of type java.lang.StringtolerateQueryErrors - the argument of type booleantargetCultureInfo - the argument of type CultureInfojava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic static EventLogSession getGlobalSession() 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 NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic EventLogInformation GetLogInformation(java.lang.String logName, PathType pathType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, OutOfMemoryException, AccessViolationException, IndexOutOfRangeException, OverflowException
logName - the argument of type java.lang.StringpathType - the argument of type PathTypejava.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 itArgumentNullException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itAccessViolationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic IEnumerable_1 GetLogNames() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic IEnumerable_1 GetProviderNames() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itEventLogNotFoundException - if the .NET member raises itEventLogInvalidDataException - if the .NET member raises itOperationCanceledException - if the .NET member raises itEventLogProviderDisabledException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itEventLogReadingException - if the .NET member raises itEventLogException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object