Formatter.WriteTimeSpan(TimeSpan, String) Formatter.WriteTimeSpan(TimeSpan, String) Formatter.WriteTimeSpan(TimeSpan, String) Formatter.WriteTimeSpan(TimeSpan, String) Method

定义

当在派生类中重写时,向已经连接到格式化程序的流中写入一个 TimeSpan 值。When overridden in a derived class, writes a TimeSpan value to the stream already attached to the formatter.

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

参数

val
TimeSpan TimeSpan TimeSpan TimeSpan

要写入的值。The value to write.

name
String String String String

成员名。The name of the member.

继承者说明

必须在派生类中实现此方法。You must implement this method in a derived class.

适用于

另请参阅