Formatter.WriteTimeSpan Method
.NET Framework 1.1
When overridden in a derived class, writes a TimeSpan value to the stream already attached to the formatter.
The Formatter type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.
[Visual Basic] Protected MustOverride Sub WriteTimeSpan( _ ByVal val As TimeSpan, _ ByVal name As String _ ) [C#] protected abstract void WriteTimeSpan( TimeSpan val, string name ); [C++] protected: virtual void WriteTimeSpan( TimeSpan val, String* name ) = 0; [JScript] protected abstract function WriteTimeSpan( val : TimeSpan, name : String );
Parameters
- val
- The value to write.
- name
- The name of the member.
Remarks
Notes to Inheritors: You must implement this method in a derived class.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Formatter Class | Formatter Members | System.Runtime.Serialization Namespace | TimeSpan