共用方式為


ConsoleLoggerOptions.TimestampFormat 屬性

定義

警告

ConsoleLoggerOptions.TimestampFormat has been deprecated. Use ConsoleFormatterOptions.TimestampFormat instead.

取得或設定用來格式化記錄訊息中時間戳的格式字串。

public:
 property System::String ^ TimestampFormat { System::String ^ get(); void set(System::String ^ value); };
[System.Obsolete("ConsoleLoggerOptions.TimestampFormat has been deprecated. Use ConsoleFormatterOptions.TimestampFormat instead.")]
public string? TimestampFormat { get; set; }
[<System.Obsolete("ConsoleLoggerOptions.TimestampFormat has been deprecated. Use ConsoleFormatterOptions.TimestampFormat instead.")>]
member this.TimestampFormat : string with get, set
Public Property TimestampFormat As String

屬性值

預設為 null

屬性

適用於