共用方式為


ISharePointProjectItemFile 介面

表示 SharePoint 專案系統中的檔案。

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

語法

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

ISharePointProjectItemFile 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Annotations 取得 IAnnotationDictionary 執行個體,這個執行個體讓自訂資料與實作 IAnnotatedObject 介面的物件產生關聯。 (繼承自 IAnnotatedObject)。
公用屬性 DeploymentPath 取得或設定檔案部署於 SharePoint 且與 DeploymentRoot 表示之基底路徑相對的路徑。 (繼承自 IDeployableFile)。
公用屬性 DeploymentRoot 取得 SharePoint 儲存檔案的基底路徑。 (繼承自 IDeployableFile)。
公用屬性 DeploymentType 取得要對檔案執行的部署類型。 (繼承自 IDeployableFile)。
公用屬性 FullPath 取得專案成員檔案或目錄的完整來源路徑。 (繼承自 ISharePointProjectMember)。
公用屬性 Icon 取得在 [方案總管] 中顯示之專案成員節點的圖示。 (繼承自 ISharePointProjectMember)。
公用屬性 IsDisposed 取得是否已處置物件。 (繼承自 INotifyObjectDisposed)。
公用屬性 IsDisposing 取得是否正在處置物件。 (繼承自 INotifyObjectDisposing)。
公用屬性 IsExpanded 取得或設定是否在 [方案總管] 中展開該節點。 (繼承自 ISharePointProjectMember)。
公用屬性 Name 取得在 [方案總管] 中顯示之專案成員節點的名稱。 (繼承自 ISharePointProjectMember)。
公用屬性 Project 取得包含專案的參考。 (繼承自 ISharePointProjectMember)。
公用屬性 ProjectItem 取得父專案項目的參考。
公用屬性 RelativePath 取得專案目錄內項目的唯一位置。 (繼承自 ISharePointProjectStartupItem)。
公用屬性 Source 取得檔案與父 ProjectItem 節點的相對路徑。
公用屬性 StartupUrl 取得項目啟動時要啟動的 URL。 (繼承自 ISharePointProjectStartupItem)。

回頁首

方法

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

回頁首

事件

  名稱 說明
公用事件 DeploymentPathChanged 發生於變更 DeploymentPath 時。 (繼承自 IDeployableFile)。
公用事件 DeploymentTypeChanged 發生於變更 DeploymentType 時。 (繼承自 IDeployableFile)。
公用事件 Disposed 發生於處置物件時。 (繼承自 INotifyObjectDisposed)。
公用事件 Disposing 發生於正在處置物件時。 (繼承自 INotifyObjectDisposing)。
公用事件 NameChanged 發生於變更專案成員節點的名稱時。 (繼承自 ISharePointProjectMember)。
公用事件 PropertyChanged 發生於屬性值變更時。 (繼承自 INotifyPropertyChanged)。

回頁首

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間