共用方式為


Web.ContentTypes 屬性

取得網站的內容類型集合。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public ReadOnly Property ContentTypes As ContentTypeCollection
    Get
'用途
Dim instance As Web
Dim value As ContentTypeCollection

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

屬性值

類型:Microsoft.SharePoint.Client.ContentTypeCollection
代表的內容類型的ContentTypeCollection物件。

備註

它不能null 參考 (未執行任何動作 於 Visual Basic 中)。

請參閱

參照

Web 類別

Web 成員

Microsoft.SharePoint.Client 命名空間