SPAttachmentCollection.Count property

Gets the number of attachments in the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPAttachmentCollection
Dim value As Integer

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

Property value

Type: System.Int32
A 32-bit integer that represents the number of attachments.

Implements

ICollection.Count

See also

Reference

SPAttachmentCollection class

SPAttachmentCollection members

Microsoft.SharePoint namespace