ISharePointProjectItem 介面

表示 SharePoint 專案系統所實作的 SharePoint 專案項目執行個體。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
Public Interface ISharePointProjectItem _
    Inherits ISharePointProjectMember, IAnnotatedObject, INotifyObjectDisposing, INotifyObjectDisposed,  _
    INotifyPropertyChanged, ISharePointProjectStartupItem
public interface ISharePointProjectItem : ISharePointProjectMember, 
    IAnnotatedObject, INotifyObjectDisposing, INotifyObjectDisposed, INotifyPropertyChanged, ISharePointProjectStartupItem

ISharePointProjectItem 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Annotations 取得 IAnnotationDictionary 執行個體,這個執行個體讓自訂資料與實作 IAnnotatedObject 介面的物件產生關聯。 (繼承自 IAnnotatedObject)。
公用屬性 DefaultFile 取得或設定檔案,該檔案在啟動 [方案總管] 中的 SharePoint 專案項目節點時啟動。(即按一下或按下 ENTER 鍵)。
公用屬性 ExtensionData 取得資訊,該資訊讓專案項目擴充功能在 Visual Studio 工作階段期間保留自訂資料。
公用屬性 FeatureProperties 取得機碼/值組,這個機碼/值組會加入至含有這個 SharePoint 專案項目的功能。
公用屬性 FeatureReceiver 取得功能接收器 (SharePoint 專案項目需要時)。在封裝期間,這個功能接收器會加入至含有此 SharePoint 專案項目的功能。
公用屬性 Files 取得專案的 SharePoint 專案項目資料夾節點和其子資料夾下的所有檔案集合。
公用屬性 FullPath 取得專案成員檔案或目錄的完整來源路徑。 (繼承自 ISharePointProjectMember)。
公用屬性 Icon 取得在 [方案總管] 中顯示之專案成員節點的圖示。 (繼承自 ISharePointProjectMember)。
公用屬性 Id 取得這個 SharePoint 專案項目執行個體的唯一識別碼。
公用屬性 IsDisposed 取得是否已處置物件。 (繼承自 INotifyObjectDisposed)。
公用屬性 IsDisposing 取得是否正在處置物件。 (繼承自 INotifyObjectDisposing)。
公用屬性 IsExpanded 取得或設定是否在 [方案總管] 中展開該節點。 (繼承自 ISharePointProjectMember)。
公用屬性 Name 取得在 [方案總管] 中顯示之專案成員節點的名稱。 (繼承自 ISharePointProjectMember)。
公用屬性 Project 取得包含專案的參考。 (繼承自 ISharePointProjectMember)。
公用屬性 ProjectItemType 取得物件的參考,這個物件表示 SharePoint 專案項目型別。
公用屬性 ProjectOutputReferences 取得屬於這個專案項目之專案輸出參考的集合。會建置參考的專案,而且其主要輸出會與專案項目一起封裝。
公用屬性 ProjectUserFileData 取得 IDictionary 物件,您可以使用這個物件來取得或設定儲存在專案使用者檔案 (例如副檔名為 .csproj.user 或 .vbproj.user 的檔案) 中的名稱/值組。
公用屬性 RelativePath 取得專案目錄內項目的唯一位置。 (繼承自 ISharePointProjectStartupItem)。
公用屬性 SafeControlEntries 取得安全控制項項目的集合,在部署時,這些安全控制項項目必須與此 SharePoint 專案項目一起部署。這些項目會加入至參考 SharePoint 專案項目的封裝中。
公用屬性 StartupUrl 取得項目啟動時要啟動的 URL。 (繼承自 ISharePointProjectStartupItem)。

回頁首

方法

  名稱 說明
公用方法 CollapseChildItems 確定 [方案總管] 中已摺疊這個 ISharePointProjectMember 的所有子項目。 (繼承自 ISharePointProjectMember)。

回頁首

事件

  名稱 說明
公用事件 Disposed 發生於處置物件時。 (繼承自 INotifyObjectDisposed)。
公用事件 Disposing 發生於正在處置物件時。 (繼承自 INotifyObjectDisposing)。
公用事件 NameChanged 發生於變更專案成員節點的名稱時。 (繼承自 ISharePointProjectMember)。
公用事件 Open 發生於開啟 SharePoint 專案項目資料夾時。
公用事件 PropertyChanged 發生於屬性值變更時。 (繼承自 INotifyPropertyChanged)。

回頁首

備註

SharePoint 專案中包含專案項目檔案的任何資料夾,都會被假定為 SharePoint 專案項目節點。

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間