STrace.Trace 方法

定義

以元件預設的追蹤等級進行追蹤。

多載

名稱 Description
Trace(String, String)

以元件預設的追蹤等級進行追蹤。

Trace(String, String, Object[])

以元件的預設追蹤層級進行追蹤,並記錄方法的輸入參數。

Trace(String, UInt32, String)

標記為指定標記等級的痕跡。

Trace(String, UInt32, String, Object[])

以元件指定的追蹤等級描繪,並指定輸入參數以格式化。

備註

僅供參考之用。 不支援。 我們無法保證未來的相容性。

Trace(String, String)

以元件預設的追蹤等級進行追蹤。

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)

參數

strComponentName
String

元件名稱。

strLine
String

追蹤事件時發出的訊息。 訊息通常會傳送到日誌檔案。

屬性

備註

僅供參考之用。 不支援。 我們無法保證未來的相容性。

適用於

Trace(String, String, Object[])

以元件的預設追蹤層級進行追蹤,並記錄方法的輸入參數。

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())

參數

strComponentName
String

元件名稱。

strFormat
String

格式字串。

arg
Object[]

格式化的輸入參數。

屬性

備註

僅供參考之用。 不支援。 我們無法保證未來的相容性。

適用於

Trace(String, UInt32, String)

標記為指定標記等級的痕跡。

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)

參數

strComponentName
String

元件名稱。

nLevel
UInt32

痕跡層級。

strLine
String

追蹤事件時發出的訊息。 訊息通常會傳送到日誌檔案。

屬性

備註

僅供參考之用。 不支援。 我們無法保證未來的相容性。

適用於

Trace(String, UInt32, String, Object[])

以元件指定的追蹤等級描繪,並指定輸入參數以格式化。

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())

參數

strComponentName
String

元件名稱。

nLevel
UInt32

痕跡層級。

strFormat
String

格式字串。

arg
Object[]

格式化的輸入參數。

屬性

備註

僅供參考之用。 不支援。 我們無法保證未來的相容性。

適用於