SPWeb.ContentTypes 属性

Gets the collection of content types for the website.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property ContentTypes As SPContentTypeCollection
    Get
用法
Dim instance As SPWeb
Dim value As SPContentTypeCollection

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

属性值

类型:Microsoft.SharePoint.SPContentTypeCollection
An SPContentTypeCollection object that represents the content types.

备注

The ContentTypes property only returns the types that exist on the current website, not all content types in the current scope. Use the AvailableContentTypes property to return all content types in the current scope, including those of any parent websites.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间