| Microsoft DirectX 8.1 (Visual Basic) | 
Saves templates to a Microsoft® DirectX® file.
object.SaveTemplates( _
    Count As Long, _
    TemplateGuids() As String)
If the method fails, an error is raised and Err.Number may be set to DXFILEERR_BADVALUE.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.