获取与项目相关联的内容类型。
命名空间: 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对象。