Write Method Write(IObjectDataOutput, T) Writes an object. Declaration void Write(IObjectDataOutput output, T obj) Parameters IObjectDataOutput output Output data. T obj The object.