public class DefaultTraceListener extends TraceListener
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Diagnostics.DefaultTraceListener
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=11.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.DefaultTraceListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DefaultTraceListener()
Initializes a new instance by invoking the .NET constructor.
|
DefaultTraceListener(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultTraceListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DefaultTraceListener, a cast assert is made to check if types are compatible. |
void |
Fail(java.lang.String message)
Invokes the .NET member Fail.
|
void |
Fail(java.lang.String message,
java.lang.String detailMessage)
Invokes the .NET member Fail.
|
boolean |
getAssertUiEnabled()
Gets the value of the .NET property AssertUiEnabled.
|
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. |
java.lang.String |
getLogFileName()
Gets the value of the .NET property LogFileName.
|
void |
setAssertUiEnabled(boolean AssertUiEnabled)
Sets the value of the .NET property AssertUiEnabled.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setLogFileName(java.lang.String LogFileName)
Sets the value of the .NET property LogFileName.
|
void |
Write(java.lang.String message)
Invokes the .NET member Write.
|
void |
WriteLine(java.lang.String message)
Invokes the .NET member WriteLine.
|
close, Close, Dispose, Flush, getAttributes, getFilter, getIndentLevel, getIndentSize, getIsThreadSafe, getName, getTraceOutputOptions, setFilter, setIndentLevel, setIndentSize, setName, setTraceOutputOptions, TraceData, TraceData, TraceEvent, TraceEvent, TraceEvent, TraceTransfer, Write, Write, Write, WriteLine, WriteLine, WriteLineGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DefaultTraceListener()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic DefaultTraceListener(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 static DefaultTraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DefaultTraceListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDefaultTraceListener instancejava.lang.Throwable - in case of error during cast operationpublic void Fail(java.lang.String message)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException
Fail in class TraceListenermessage - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Fail(java.lang.String message,
java.lang.String detailMessage)
throws java.lang.Throwable,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentException,
ArgumentNullException,
CultureNotFoundException,
ArgumentOutOfRangeException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
OutOfMemoryException,
ArrayTypeMismatchException
Fail in class TraceListenermessage - the argument of type java.lang.StringdetailMessage - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic boolean getAssertUiEnabled()
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 TraceListenerpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TraceListenerpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TraceListenernull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TraceListenerpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class TraceListenerpublic java.lang.String getLogFileName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setAssertUiEnabled(boolean AssertUiEnabled)
throws java.lang.Throwable
AssertUiEnabled - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class TraceListenerinstance - the new underlying objectpublic void setLogFileName(java.lang.String LogFileName)
throws java.lang.Throwable
LogFileName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Write(java.lang.String message)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
LockRecursionException,
AbandonedMutexException,
SerializationException,
IOException,
ArgumentNullException,
ObjectDisposedException,
ArrayTypeMismatchException
Write in class TraceListenermessage - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSerializationException - if the .NET member raises itIOException - if the .NET member raises itArgumentNullException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void WriteLine(java.lang.String message)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
OutOfMemoryException,
IOException
WriteLine in class TraceListenermessage - 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 itOutOfMemoryException - if the .NET member raises itIOException - if the .NET member raises it