I haven't tried it myself, but I found this method a few days ago :
[INDENT]public static byte[] geometryToEsriShape(Geometry geometry)
Exports geometry to the ESRI shape file format.
Parameters:
geometry - The geometry to export. (null value is not allowed)
Returns:
Array containing the exported ESRI shape file.
Since:
1.0[/INDENT]
You'll find this method in GeometryEngine class.
Unfortunately, it seems by the name of the method that it only treats geometry, and no attributes.