语言

LogValuesFormatter 类

定义

注意

This type is retained only for compatibility. The recommended alternative is the Microsoft.Extensions.Diagnostics.Testing package.

格式化程序将 {NamedformatItem} 等命名格式项转换为 Format(IFormatProvider, String, Object) 格式。

public ref class LogValuesFormatter
[System.Obsolete("This type is retained only for compatibility. The recommended alternative is the Microsoft.Extensions.Diagnostics.Testing package.", true)]
public class LogValuesFormatter
[<System.Obsolete("This type is retained only for compatibility. The recommended alternative is the Microsoft.Extensions.Diagnostics.Testing package.", true)>]
type LogValuesFormatter = class
Public Class LogValuesFormatter
继承
LogValuesFormatter
特性

构造函数

名称 说明
LogValuesFormatter(String)
已过时.

初始化 LogValuesFormatter 类的新实例。

属性

名称 说明
OriginalFormat
已过时.

获取原始格式字符串。

ValueNames
已过时.

获取命名格式参数名称的列表。

方法

名称 说明
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
Format(Object[])
已过时.

使用格式字符串设置给定值的格式。

GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type。

(继承自 Object)
GetValue(Object[], Int32)
已过时.

获取指定索引处格式项的键/值对。

GetValues(Object[])
已过时.

获取所有格式项的键/值对的枚举。

MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于