共用方式為


SPList.ContentTypes property

取得與清單相關聯的內容類型。

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

Syntax

'宣告
Public ReadOnly Property ContentTypes As SPContentTypeCollection
    Get
'用途
Dim instance As SPList
Dim value As SPContentTypeCollection

value = instance.ContentTypes
public SPContentTypeCollection ContentTypes { get; }

Property value

Type: Microsoft.SharePoint.SPContentTypeCollection
SPContentTypeCollection 集合,其中包含與清單相關聯的內容類型。

請參閱

參照

SPList class

SPList members

Microsoft.SharePoint namespace