SPListItem.ContentType 属性

获取与项目相关联的内容类型。

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

语法

声明
Public ReadOnly Property ContentType As SPContentType
    Get
用法
Dim instance As SPListItem
Dim value As SPContentType

value = instance.ContentType
public SPContentType ContentType { get; }

属性值

类型:Microsoft.SharePoint.SPContentType
一个表示内容类型的SPContentType对象。

另请参阅

引用

SPListItem 类

SPListItem 成员

Microsoft.SharePoint 命名空间