Represents the collection of files and views that are used in a site template.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Use the Modules property of the SPWeb class to return the collection of modules for a site, and use an indexer to return a single module from the collection. For example, if the collection is assigned to a variable named myModules, use myModules[index] in C#, or myModules(index) in Visual Basic, where index is the index number of the module in the collection.