SPListItem.Attachments property
取得與此項目相關聯的附件集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property Attachments As SPAttachmentCollection
Get
'用途
Dim instance As SPListItem
Dim value As SPAttachmentCollection
value = instance.Attachments
public SPAttachmentCollection Attachments { get; }
Property value
Type: Microsoft.SharePoint.SPAttachmentCollection
Attachments 集合。
備註
Attachments屬性不會套用至文件庫,並傳回ArgumentOutOfRangeException例外狀況,如果套用至文件庫。