Formatter.WriteDateTime(DateTime, String) Formatter.WriteDateTime(DateTime, String) Formatter.WriteDateTime(DateTime, String) Formatter.WriteDateTime(DateTime, String) Method

定義

當覆寫於衍生類別時,將 DateTime 值寫入至已附加於格式子的資料流。When overridden in a derived class, writes a DateTime value to the stream already attached to the formatter.

protected:
 abstract void WriteDateTime(DateTime val, System::String ^ name);
protected abstract void WriteDateTime (DateTime val, string name);
abstract member WriteDateTime : DateTime * string -> unit
Protected MustOverride Sub WriteDateTime (val As DateTime, name As String)

參數

val
DateTime DateTime DateTime DateTime

要寫入的值。The value to write.

name
String String String String

成員的名稱。The name of the member.

給繼承者的注意事項

您必須在衍生類別中實作這個方法。You must implement this method in a derived class.

適用於

另請參閱