共用方式為


ILoggingChannel.LogValuePair 方法

定義

多載

LogValuePair(String, Int32)

將資料記錄到目前的 LoggingChannel

LogValuePair(String, Int32, LoggingLevel)

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

LogValuePair(String, Int32)

將資料記錄到目前的 LoggingChannel

public:
 void LogValuePair(Platform::String ^ value1, int value2);
/// [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產生關聯的值。

屬性

另請參閱

適用於

LogValuePair(String, Int32, LoggingLevel)

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

public:
 void LogValuePair(Platform::String ^ value1, int value2, LoggingLevel level);
/// [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

記錄層級,

屬性

另請參閱

適用於