public class TraceSource extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.TraceSource
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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: System
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.TraceSource
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TraceSource() |
TraceSource(java.lang.Object instance)
Internal constructor.
|
TraceSource(java.lang.String name) |
TraceSource(java.lang.String name,
SourceLevels defaultLevel) |
| Modifier and Type | Method and Description |
|---|---|
static TraceSource |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TraceSource, a cast assert is made to check if types are compatible. |
void |
Close() |
void |
Flush() |
StringDictionary |
getAttributes() |
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
|
TraceListenerCollection |
getListeners() |
java.lang.String |
getName() |
SourceSwitch |
getSwitch() |
void |
setJCOInstance(JCObject instance) |
void |
setSwitch(SourceSwitch Switch) |
void |
TraceData(TraceEventType eventType,
int id,
NetObject... data) |
void |
TraceData(TraceEventType eventType,
int id,
NetObject data) |
void |
TraceEvent(TraceEventType eventType,
int id) |
void |
TraceEvent(TraceEventType eventType,
int id,
java.lang.String message) |
void |
TraceEvent(TraceEventType eventType,
int id,
java.lang.String format,
NetObject... args) |
void |
TraceInformation(java.lang.String message) |
void |
TraceInformation(java.lang.String format,
NetObject... args) |
void |
TraceTransfer(int id,
java.lang.String message,
Guid relatedActivityId) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TraceSource()
throws java.lang.Throwable
java.lang.Throwablepublic TraceSource(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic TraceSource(java.lang.String name)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic TraceSource(java.lang.String name,
SourceLevels defaultLevel)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static TraceSource cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TraceSource, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTraceSource instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable,
ArgumentException
java.lang.ThrowableArgumentExceptionpublic void Flush()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
ArgumentOutOfRangeException,
MissingManifestResourceException,
IndexOutOfRangeException,
ConfigurationException,
ConfigurationErrorsException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionConfigurationExceptionConfigurationErrorsExceptionpublic StringDictionary getAttributes() throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionpublic 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 TraceListenerCollection getListeners() throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic SourceSwitch getSwitch() throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setSwitch(SourceSwitch Switch) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionpublic void TraceData(TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceData(TraceEventType eventType, int id, NetObject data) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceEvent(TraceEventType eventType, int id) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceEvent(TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceEvent(TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ConfigurationException, ConfigurationErrorsException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NullReferenceException, OverflowException, PlatformNotSupportedException, Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceInformation(java.lang.String message)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
ArgumentOutOfRangeException,
MissingManifestResourceException,
IndexOutOfRangeException,
ConfigurationException,
ConfigurationErrorsException,
NotImplementedException,
PathTooLongException,
InvalidCastException,
NullReferenceException,
FormatException,
OverflowException,
PlatformNotSupportedException,
Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionConfigurationExceptionConfigurationErrorsExceptionNotImplementedExceptionPathTooLongExceptionInvalidCastExceptionNullReferenceExceptionFormatExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceInformation(java.lang.String format,
NetObject... args)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
ArgumentOutOfRangeException,
MissingManifestResourceException,
IndexOutOfRangeException,
ConfigurationException,
ConfigurationErrorsException,
NotImplementedException,
PathTooLongException,
InvalidCastException,
NullReferenceException,
FormatException,
OverflowException,
PlatformNotSupportedException,
Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionConfigurationExceptionConfigurationErrorsExceptionNotImplementedExceptionPathTooLongExceptionInvalidCastExceptionNullReferenceExceptionFormatExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exceptionpublic void TraceTransfer(int id,
java.lang.String message,
Guid relatedActivityId)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
TypeLoadException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
NotImplementedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
FormatException,
ConfigurationException,
ConfigurationErrorsException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidCastException,
NullReferenceException,
OverflowException,
PlatformNotSupportedException,
Win32Exception
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionFormatExceptionConfigurationExceptionConfigurationErrorsExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNullReferenceExceptionOverflowExceptionPlatformNotSupportedExceptionWin32Exception