語言

LogValuesFormatter 類別

定義

警告

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

Formatter 將命名格式項目如 {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
屬性

建構函式

名稱 Description
LogValuesFormatter(String)
已淘汰.

初始化 LogValuesFormatter 類別的新執行個體。

屬性

名稱 Description
OriginalFormat
已淘汰.

會取得原始格式的字串。

ValueNames
已淘汰.

取得已命名格式參數名稱的清單。

方法

名稱 Description
Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Format(Object[])
已淘汰.

使用 format 字串格式化給定值。

GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前實例的 Type。

(繼承來源 Object)
GetValue(Object[], Int32)
已淘汰.

取得格式項目在指定索引的鍵值對。

GetValues(Object[])
已淘汰.

它會為所有格式項目取得一組鍵值對的可枚舉。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於