The Virtual Earth v6 map control API added support for setting altitude of VEShapes in Virtual Earth 3D. There is a new SetAltitude method on VEShape which takes in 2 parameters:
The altitude parameter is the altitude specified in meters. The altitudeMode parameter is an optional VEAltitudeMode enumeration specifying the mode of the altitude. If not specified, by default it is VEAltitudeMode.RelativeToGround which is meters above ground level. You can also specify VEAltitudeMode.Absolute which is meters above the WGS84 ellipsoid. When the VEShape is a pushpin, the altitude is a single floating point value. When the VEShape is a polyline or polygon, it is an array of floating point values specifying the altitude for each point in the shape.
There is also a new SetLineToGround method on the VEShape for polylines and polygon shapes which takes in a boolean to specify whether or not connect the points in the shape to the ground. By default it is false.
The following sample shows some custom VEShapes at different altitudes. It also demonstrates a polygon with points at different altitudes and the line to ground functionality: