共用方式為


SPAttachmentCollection members

Include protected members
Include inherited members

表示清單項目的附件集合。

The SPAttachmentCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的附件數目。
Public property IsSynchronized 取得布林值,指出對集合的存取是否同步處理或執行緒的安全。
Public property Item 集合中指定之索引處取得附件的檔案名稱。[C#]在 C# 中,這個屬性會是SPAttachmentCollection類別的索引子。
Public property SyncRoot 取得用於同步化存取集合的物件。
Public property UrlPrefix 取得包含集合的目錄中的 URL。

Top

Methods

  Name Description
Public method Add 新增附件所指定的檔案名稱和位元組陣列表示清單項目。
Public method AddNow 新增附件所表示指定的檔案名稱和位元組陣列清單項目而不需要更新父清單項目。
Public method Delete 從集合中刪除指定的檔名的附件。
Public method DeleteNow 從集合中刪除指定的檔名附件而不需要更新父清單項目。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator 傳回逐一查看集合的列舉值。
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Recycle 回收由指定的檔名的附件。
Public method RecycleNow 回收由指定的檔案名稱而不需要更新父清單項目附件。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo 將附件集合的元素複製到一維陣列,指定索引處開始。

Top

請參閱

參照

SPAttachmentCollection class

Microsoft.SharePoint namespace