DataStream..::..Write<(Of <(<'T>)>)> Method (T, Type)
Writes data of a specified type to the data buffer using a registered writer.
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
Type Parameters
- T
- The type of data to write.
Parameters
- data
- Type: T
The data to be written to the buffer.
- dataType
- Type: Type
The type of data to be written, used to find the appropriate writer.
Exceptions
Exception | Condition |
---|---|
Exception | Thrown when the specified type is not supported or the writer is not found. |