Share via


SPWeb.AvailableContentTypes property

取得套用至目前的範圍,包括目前的網站,以及任何父網站的所有內容類型範本的集合。

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

Syntax

'宣告
Public ReadOnly Property AvailableContentTypes As SPContentTypeCollection
    Get
'用途
Dim instance As SPWeb
Dim value As SPContentTypeCollection

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

Property value

Type: Microsoft.SharePoint.SPContentTypeCollection
SPContentTypeCollection 物件,表示內容類型。

備註

使用ContentTypes屬性來傳回目前網站中的內容型別。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace