STrace.Trace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Traces with the default trace level for the component.
Overloads
Trace(String, String) |
Traces with the default trace level for the component. |
Trace(String, String, Object[]) |
Traces with the default trace level for the component, and logs the input parameters of the method. |
Trace(String, UInt32, String) |
Traces with the specified trace level. |
Trace(String, UInt32, String, Object[]) |
Traces with the specified trace level for the component, and specifies the input parameters to format. |
Remarks
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Trace(String, String)
Traces with the default trace level for the component.
public:
static void Trace(System::String ^ strComponentName, System::String ^ strLine);
[System.Diagnostics.Conditional("TRACE")]
public static void Trace (string strComponentName, string strLine);
[<System.Diagnostics.Conditional("TRACE")>]
static member Trace : string * string -> unit
Public Shared Sub Trace (strComponentName As String, strLine As String)
Parameters
- strComponentName
- String
The component name.
- strLine
- String
The message that is sent out for the trace event. The message is typically sent to the log file.
- Attributes
Remarks
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Applies to
Trace(String, String, Object[])
Traces with the default trace level for the component, and logs the input parameters of the method.
public:
static void Trace(System::String ^ strComponentName, System::String ^ strFormat, ... cli::array <System::Object ^> ^ arg);
[System.Diagnostics.Conditional("TRACE")]
public static void Trace (string strComponentName, string strFormat, params object[] arg);
[<System.Diagnostics.Conditional("TRACE")>]
static member Trace : string * string * obj[] -> unit
Public Shared Sub Trace (strComponentName As String, strFormat As String, ParamArray arg As Object())
Parameters
- strComponentName
- String
The component name.
- strFormat
- String
The format string.
- arg
- Object[]
The input parameters to format.
- Attributes
Remarks
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Applies to
Trace(String, UInt32, String)
Traces with the specified trace level.
public:
static void Trace(System::String ^ strComponentName, System::UInt32 nLevel, System::String ^ strLine);
[System.Diagnostics.Conditional("TRACE")]
public static void Trace (string strComponentName, uint nLevel, string strLine);
[<System.Diagnostics.Conditional("TRACE")>]
static member Trace : string * uint32 * string -> unit
Public Shared Sub Trace (strComponentName As String, nLevel As UInteger, strLine As String)
Parameters
- strComponentName
- String
The component name.
- nLevel
- UInt32
The trace level.
- strLine
- String
The message that is sent out for the trace event. The message is typically sent to the log file.
- Attributes
Remarks
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Applies to
Trace(String, UInt32, String, Object[])
Traces with the specified trace level for the component, and specifies the input parameters to format.
public:
static void Trace(System::String ^ strComponentName, System::UInt32 nLevel, System::String ^ strFormat, ... cli::array <System::Object ^> ^ arg);
[System.Diagnostics.Conditional("TRACE")]
public static void Trace (string strComponentName, uint nLevel, string strFormat, params object[] arg);
[<System.Diagnostics.Conditional("TRACE")>]
static member Trace : string * uint32 * string * obj[] -> unit
Public Shared Sub Trace (strComponentName As String, nLevel As UInteger, strFormat As String, ParamArray arg As Object())
Parameters
- strComponentName
- String
The component name.
- nLevel
- UInt32
The trace level.
- strFormat
- String
The format string.
- arg
- Object[]
The input parameters to format.
- Attributes
Remarks
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.