共用方式為


LoggingChannel.LogValuePair 方法

定義

多載

LogValuePair(String, Int32)

將資料記錄到目前的 LoggingChannel

LogValuePair(String, Int32, LoggingLevel)

使用指定的LoggingLevel將資料記錄到目前的LoggingChannel

LogValuePair(String, Int32)

將資料記錄到目前的 LoggingChannel

public:
 virtual void LogValuePair(Platform::String ^ value1, int value2) = LogValuePair;
/// [Windows.Foundation.Metadata.Overload("LogValuePair")]
void LogValuePair(winrt::hstring const& value1, int const& value2);
[Windows.Foundation.Metadata.Overload("LogValuePair")]
public void LogValuePair(string value1, int value2);
function logValuePair(value1, value2)
Public Sub LogValuePair (value1 As String, value2 As Integer)

參數

value1
String

Platform::String

winrt::hstring

要與 value2建立關聯的字串。

value2
Int32

int

要與 value1產生關聯的值。

實作

M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(System.String,System.Int32) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(Platform::String,int) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(winrt::hstring,int)
屬性

備註

呼叫 LogValuePair 方法,將資料記錄為目前 LoggingChannel的索引鍵/值組。

另請參閱

適用於

LogValuePair(String, Int32, LoggingLevel)

使用指定的LoggingLevel將資料記錄到目前的LoggingChannel

public:
 virtual void LogValuePair(Platform::String ^ value1, int value2, LoggingLevel level) = LogValuePair;
/// [Windows.Foundation.Metadata.Overload("LogValuePairWithLevel")]
void LogValuePair(winrt::hstring const& value1, int const& value2, LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("LogValuePairWithLevel")]
public void LogValuePair(string value1, int value2, LoggingLevel level);
function logValuePair(value1, value2, level)
Public Sub LogValuePair (value1 As String, value2 As Integer, level As LoggingLevel)

參數

value1
String

Platform::String

winrt::hstring

要與 value2建立關聯的字串。

value2
Int32

int

要與 value1產生關聯的值。

level
LoggingLevel

記錄層級,

實作

M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(System.String,System.Int32,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(Platform::String,int,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogValuePair(winrt::hstring,int,Windows.Foundation.Diagnostics.LoggingLevel)
屬性

另請參閱

適用於