public class TraceListener extends MarshalByRefObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Diagnostics.TraceListener
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=8.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.TraceListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TraceListener() |
TraceListener(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TraceListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TraceListener, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close()
Invokes the .NET member Close.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
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.
|
void |
Flush()
Invokes the .NET member Flush.
|
StringDictionary |
getAttributes()
Gets the value of the .NET property Attributes.
|
TraceFilter |
getFilter()
Gets the value of the .NET property Filter.
|
int |
getIndentLevel()
Gets the value of the .NET property IndentLevel.
|
int |
getIndentSize()
Gets the value of the .NET property IndentSize.
|
boolean |
getIsThreadSafe()
Gets the value of the .NET property IsThreadSafe.
|
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 |
getName()
Gets the value of the .NET property Name.
|
TraceOptions |
getTraceOutputOptions()
Gets the value of the .NET property TraceOutputOptions.
|
void |
setFilter(TraceFilter Filter)
Sets the value of the .NET property Filter.
|
void |
setIndentLevel(int IndentLevel)
Sets the value of the .NET property IndentLevel.
|
void |
setIndentSize(int IndentSize)
Sets the value of the .NET property IndentSize.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setName(java.lang.String Name)
Sets the value of the .NET property Name.
|
void |
setTraceOutputOptions(TraceOptions TraceOutputOptions)
Sets the value of the .NET property TraceOutputOptions.
|
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
NetObject... data)
Invokes the .NET member TraceData.
|
void |
TraceData(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
NetObject data)
Invokes the .NET member TraceData.
|
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id)
Invokes the .NET member TraceEvent.
|
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
java.lang.String message)
Invokes the .NET member TraceEvent.
|
void |
TraceEvent(TraceEventCache eventCache,
java.lang.String source,
TraceEventType eventType,
int id,
java.lang.String format,
NetObject... args)
Invokes the .NET member TraceEvent.
|
void |
TraceTransfer(TraceEventCache eventCache,
java.lang.String source,
int id,
java.lang.String message,
Guid relatedActivityId)
Invokes the .NET member TraceTransfer.
|
void |
Write(NetObject o)
Invokes the .NET member Write.
|
void |
Write(NetObject o,
java.lang.String category)
Invokes the .NET member Write.
|
void |
Write(java.lang.String message)
Invokes the .NET member Write.
|
void |
Write(java.lang.String message,
java.lang.String category)
Invokes the .NET member Write.
|
void |
WriteLine(NetObject o)
Invokes the .NET member WriteLine.
|
void |
WriteLine(NetObject o,
java.lang.String category)
Invokes the .NET member WriteLine.
|
void |
WriteLine(java.lang.String message)
Invokes the .NET member WriteLine.
|
void |
WriteLine(java.lang.String message,
java.lang.String category)
Invokes the .NET member WriteLine.
|
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TraceListener()
throws java.lang.Throwable
java.lang.Throwablepublic TraceListener(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 TraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TraceListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTraceListener instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void Fail(java.lang.String message)
throws java.lang.Throwable,
ArrayTypeMismatchException,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
OutOfMemoryException
message - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - 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,
NotSupportedException,
ArgumentException,
ArrayTypeMismatchException,
OutOfMemoryException,
PlatformNotSupportedException,
InvalidOperationException
message - 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 CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void Flush()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic StringDictionary getAttributes() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic TraceFilter getFilter() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getIndentLevel()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getIndentSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsThreadSafe()
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 MarshalByRefObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic TraceOptions getTraceOutputOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setFilter(TraceFilter Filter) throws java.lang.Throwable
Filter - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIndentLevel(int IndentLevel)
throws java.lang.Throwable
IndentLevel - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIndentSize(int IndentSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
IndentSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class MarshalByRefObjectinstance - the new underlying objectpublic void setName(java.lang.String Name)
throws java.lang.Throwable
Name - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTraceOutputOptions(TraceOptions TraceOutputOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
TraceOutputOptions - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject... data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.StringeventType - the argument of type TraceEventTypeid - the argument of type intdata - the argument of type NetObject...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void TraceData(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, NetObject data) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.StringeventType - the argument of type TraceEventTypeid - the argument of type intdata - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, FormatException, OutOfMemoryException, ArgumentOutOfRangeException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.StringeventType - the argument of type TraceEventTypeid - the argument of type intjava.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 itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String message) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ArrayTypeMismatchException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.StringeventType - the argument of type TraceEventTypeid - the argument of type intmessage - 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 itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void TraceEvent(TraceEventCache eventCache, java.lang.String source, TraceEventType eventType, int id, java.lang.String format, NetObject... args) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, ArgumentNullException, OutOfMemoryException, ArrayTypeMismatchException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.StringeventType - the argument of type TraceEventTypeid - the argument of type intformat - the argument of type java.lang.Stringargs - the argument of type NetObject...java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void TraceTransfer(TraceEventCache eventCache, java.lang.String source, int id, java.lang.String message, Guid relatedActivityId) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException
eventCache - the argument of type TraceEventCachesource - the argument of type java.lang.Stringid - the argument of type intmessage - the argument of type java.lang.StringrelatedActivityId - the argument of type Guidjava.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 itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Write(NetObject o) throws java.lang.Throwable
o - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Write(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, PlatformNotSupportedException
o - the argument of type NetObjectcategory - 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 itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void Write(java.lang.String message)
throws java.lang.Throwable
message - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Write(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
message - the argument of type java.lang.Stringcategory - 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 itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteLine(NetObject o) throws java.lang.Throwable
o - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void WriteLine(NetObject o, java.lang.String category) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, PlatformNotSupportedException
o - the argument of type NetObjectcategory - 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 itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void WriteLine(java.lang.String message)
throws java.lang.Throwable
message - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void WriteLine(java.lang.String message,
java.lang.String category)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
OutOfMemoryException
message - the argument of type java.lang.Stringcategory - 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 itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises it