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.Diagnostics.TraceSource, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Diagnostics.TraceSource
|
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() |
SourceLevels |
getDefaultLevel() |
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,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException
public TraceSource(java.lang.String name,
SourceLevels defaultLevel)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
RankException,
ArrayTypeMismatchException,
InvalidCastException
public 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,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public void Flush()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionpublic StringDictionary getAttributes() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public SourceLevels getDefaultLevel() 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 TraceListenerCollection getListeners() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic SourceSwitch getSwitch() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setSwitch(SourceSwitch Switch) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public void TraceData(TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceData(TraceEventType eventType, int id, NetObject data) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceEvent(TraceEventType eventType, int id) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceEvent(TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceEvent(TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, NullReferenceException, OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOutOfMemoryExceptionpublic void TraceInformation(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
NullReferenceException,
OutOfMemoryException
public void TraceInformation(java.lang.String format,
NetObject... args)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
IndexOutOfRangeException,
FormatException,
NullReferenceException,
OutOfMemoryException
public void TraceTransfer(int id,
java.lang.String message,
Guid relatedActivityId)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException,
NullReferenceException,
OverflowException,
OutOfMemoryException
java.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryException