SPAttachmentCollection members
Represents the collection of attachments for a list item.
The SPAttachmentCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
Count | Gets the number of attachments in the collection. |
![]() |
IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread safe. |
![]() |
Item | Gets the file name of the attachment at the specified index in the collection. [C#] In C#, this property is the indexer for the SPAttachmentCollection class. |
![]() |
SyncRoot | Gets an object that is used to synchronize access to the collection. |
![]() |
UrlPrefix | Gets the URL for the directory that contains the collection. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Add | Adds the attachment that is represented by the specified file name and byte array to the list item. |
![]() |
AddNow | Adds the attachment that is represented by the specified file name and byte array to the list item without requiring an update to the parent list item. |
![]() |
Delete | Deletes the attachment with the specified file name from the collection. |
![]() |
DeleteNow | Deletes the attachment with the specified file name from the collection without requiring an update to the parent list item. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetEnumerator | Returns an enumerator to iterate through the collection. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
Recycle | Recycles the attachment that is represented by the specified file name. |
![]() |
RecycleNow | Recycles the attachment that is represented by the specified file name without requiring an update to the parent list item. |
![]() |
ToString | (Inherited from Object.) |
Top
Explicit interface implementations
Name | Description | |
---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the elements of the attachment collection to a one-dimensional array, starting at the specified index. |
Top