public class Trace extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.Trace
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=9.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.Trace
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Trace() |
Trace(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Assert(boolean condition) |
static void |
Assert(boolean condition,
java.lang.String message) |
static void |
Assert(boolean condition,
java.lang.String message,
java.lang.String detailMessage) |
static Trace |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Trace, a cast assert is made to check if types are compatible. |
static void |
Close() |
static void |
Fail(java.lang.String message) |
static void |
Fail(java.lang.String message,
java.lang.String detailMessage) |
static void |
Flush() |
static boolean |
getAutoFlush() |
static CorrelationManager |
getCorrelationManager() |
static int |
getIndentLevel() |
static int |
getIndentSize() |
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
|
static TraceListenerCollection |
getListeners() |
static boolean |
getUseGlobalLock() |
static void |
Indent() |
static void |
Refresh() |
static void |
setAutoFlush(boolean AutoFlush) |
static void |
setIndentLevel(int IndentLevel) |
static void |
setIndentSize(int IndentSize) |
void |
setJCOInstance(JCObject instance) |
static void |
setUseGlobalLock(boolean UseGlobalLock) |
static void |
TraceError(java.lang.String message) |
static void |
TraceError(java.lang.String format,
NetObject... args) |
static void |
TraceInformation(java.lang.String message) |
static void |
TraceInformation(java.lang.String format,
NetObject... args) |
static void |
TraceWarning(java.lang.String message) |
static void |
TraceWarning(java.lang.String format,
NetObject... args) |
static void |
Unindent() |
static void |
Write(NetObject value) |
static void |
Write(NetObject value,
java.lang.String category) |
static void |
Write(java.lang.String message) |
static void |
Write(java.lang.String message,
java.lang.String category) |
static void |
WriteIf(boolean condition,
NetObject value) |
static void |
WriteIf(boolean condition,
NetObject value,
java.lang.String category) |
static void |
WriteIf(boolean condition,
java.lang.String message) |
static void |
WriteIf(boolean condition,
java.lang.String message,
java.lang.String category) |
static void |
WriteLine(NetObject value) |
static void |
WriteLine(NetObject value,
java.lang.String category) |
static void |
WriteLine(java.lang.String message) |
static void |
WriteLine(java.lang.String message,
java.lang.String category) |
static void |
WriteLineIf(boolean condition,
NetObject value) |
static void |
WriteLineIf(boolean condition,
NetObject value,
java.lang.String category) |
static void |
WriteLineIf(boolean condition,
java.lang.String message) |
static void |
WriteLineIf(boolean condition,
java.lang.String message,
java.lang.String category) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Trace()
throws java.lang.Throwable
java.lang.Throwablepublic Trace(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static void Assert(boolean condition)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void Assert(boolean condition,
java.lang.String message)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void Assert(boolean condition,
java.lang.String message,
java.lang.String detailMessage)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static Trace cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Trace, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTrace instancejava.lang.Throwable - in case of error during cast operationpublic static void Close()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NullReferenceException
public static void Fail(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void Fail(java.lang.String message,
java.lang.String detailMessage)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void Flush()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionpublic static boolean getAutoFlush()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic static CorrelationManager getCorrelationManager() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException
public static int getIndentLevel()
throws java.lang.Throwable
java.lang.Throwablepublic static int getIndentSize()
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 static TraceListenerCollection getListeners() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException
public static boolean getUseGlobalLock()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic static void Indent()
throws java.lang.Throwable
java.lang.Throwablepublic static void Refresh()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
NullReferenceException
public static void setAutoFlush(boolean AutoFlush)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic static void setIndentLevel(int IndentLevel)
throws java.lang.Throwable
java.lang.Throwablepublic static void setIndentSize(int IndentSize)
throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static void setUseGlobalLock(boolean UseGlobalLock)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic static void TraceError(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void TraceError(java.lang.String format,
NetObject... args)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void TraceInformation(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void TraceInformation(java.lang.String format,
NetObject... args)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void TraceWarning(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void TraceWarning(java.lang.String format,
NetObject... args)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
ArgumentNullException
public static void Unindent()
throws java.lang.Throwable
java.lang.Throwablepublic static void Write(NetObject value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionpublic static void Write(NetObject value, java.lang.String category) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException, OutOfMemoryException
public static void Write(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionpublic static void Write(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void WriteIf(boolean condition,
NetObject value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException
public static void WriteIf(boolean condition,
NetObject value,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void WriteIf(boolean condition,
java.lang.String message)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException
public static void WriteIf(boolean condition,
java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void WriteLine(NetObject value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionpublic static void WriteLine(NetObject value, java.lang.String category) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException, OutOfMemoryException
public static void WriteLine(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionpublic static void WriteLine(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void WriteLineIf(boolean condition,
NetObject value)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException
public static void WriteLineIf(boolean condition,
NetObject value,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException
public static void WriteLineIf(boolean condition,
java.lang.String message)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException
public static void WriteLineIf(boolean condition,
java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
OutOfMemoryException