SPListItemCollection.Count 属性

Gets the number of list items in the collection, excluding folders.

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

语法

声明
Public Overrides ReadOnly Property Count As Integer
    Get
用法
Dim instance As SPListItemCollection
Dim value As Integer

value = instance.Count
public override int Count { get; }

属性值

类型:System.Int32
A 32-bit integer that indicates the number of list items, excluding folders.

实现

ICollection.Count

备注

The value of the ItemCount property of the SPList class includes folders and files within subfolders.

另请参阅

引用

SPListItemCollection 类

SPListItemCollection 成员

Microsoft.SharePoint 命名空间