Share via


SPModuleCollection class

表示SPModule物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPModuleCollection

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Class SPModuleCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPModuleCollection
public class SPModuleCollection : SPBaseCollection

備註

使用SPWeb類別的Modules屬性,傳回的站台的模組集合。若要從集合傳回單一模組中使用索引子。例如,如果集合指派給一個名為myModules變數,Microsoft Visual C#,或myModules(index) 在 Microsoft Visual Basic,其中index是索引數字的集合中的模組中使用myModules[index]。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPModuleCollection members

Microsoft.SharePoint namespace