public class EventLogSession extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/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.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System.Core
|
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() |
EventLogSession(java.lang.Object instance)
Internal constructor.
|
EventLogSession(java.lang.String server) |
EventLogSession(java.lang.String server,
java.lang.String domain,
java.lang.String user,
SecureString password,
SessionAuthentication logOnType) |
| Modifier and Type | Method and Description |
|---|---|
void |
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) |
void |
ClearLog(java.lang.String logName,
java.lang.String backupPath) |
void |
close() |
void |
Dispose() |
void |
ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath) |
void |
ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors) |
void |
ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath) |
void |
ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors,
CultureInfo targetCultureInfo) |
static EventLogSession |
getGlobalSession() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
EventLogInformation |
GetLogInformation(java.lang.String logName,
PathType pathType) |
void |
setJCOInstance(JCObject instance) |
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,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException
public EventLogSession(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic EventLogSession(java.lang.String server)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
OutOfMemoryException,
CryptographicException,
PlatformNotSupportedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionCryptographicExceptionPlatformNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic EventLogSession(java.lang.String server,
java.lang.String domain,
java.lang.String user,
SecureString password,
SessionAuthentication logOnType)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
OutOfMemoryException,
CryptographicException,
PlatformNotSupportedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionCryptographicExceptionPlatformNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void CancelCurrentOperations()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic 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,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void ClearLog(java.lang.String logName,
java.lang.String backupPath)
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException
public void ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
MissingManifestResourceException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionMissingManifestResourceExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void ExportLog(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
MissingManifestResourceException,
NullReferenceException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionMissingManifestResourceExceptionNullReferenceExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic void ExportLogAndMessages(java.lang.String path,
PathType pathType,
java.lang.String query,
java.lang.String targetFilePath,
boolean tolerateQueryErrors,
CultureInfo targetCultureInfo)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
MissingManifestResourceException,
NullReferenceException,
EventLogNotFoundException,
EventLogInvalidDataException,
OperationCanceledException,
EventLogProviderDisabledException,
UnauthorizedAccessException,
EventLogReadingException,
EventLogException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionMissingManifestResourceExceptionNullReferenceExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionpublic static EventLogSession getGlobalSession() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic EventLogInformation GetLogInformation(java.lang.String logName, PathType pathType) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, NullReferenceException, NotSupportedException, PlatformNotSupportedException, EventLogNotFoundException, EventLogInvalidDataException, OperationCanceledException, EventLogProviderDisabledException, UnauthorizedAccessException, EventLogReadingException, EventLogException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, AccessViolationException, OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionPlatformNotSupportedExceptionEventLogNotFoundExceptionEventLogInvalidDataExceptionOperationCanceledExceptionEventLogProviderDisabledExceptionUnauthorizedAccessExceptionEventLogReadingExceptionEventLogExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionAccessViolationExceptionOverflowExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject