共用方式為


SPContentTypeCollection class

代表 web 或清單的內容型別的集合。

Inheritance hierarchy

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

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

Syntax

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

備註

集合時包含在SPWeb物件,表示集合的 web 內容的型別 ;包含在SPList物件,它所代表清單內容型別的集合。

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.

請參閱

參照

SPContentTypeCollection members

Microsoft.SharePoint namespace

其他資源

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy