IMappedFolder 介面

表示 SharePoint 專案中對應至 SharePoint 中之位置的資料夾。

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

語法

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

IMappedFolder 型別會公開下列成員。

屬性

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

回頁首

方法

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

回頁首

事件

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

回頁首

備註

對應資料夾是 SharePoint 專案中與 SharePoint 伺服器安裝中特定檔案實體位置對應的資料夾。 如需詳細資訊,請參閱HOW TO:新增與移除對應的資料夾

所有 BuildAction 屬性設定成 Content 或 None 的檔案會自動包含在輸出 WSP 檔案中,並部署到 SharePoint 伺服器。

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間