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)
属性

另请参阅

适用于