共用方式為


ISharePointProjectItem.DefaultFile 屬性

取得或設定檔案,該檔案在啟動 [方案總管] 中的 SharePoint 專案項目節點時啟動。 (即按一下或按下 ENTER 鍵)。

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

語法

'宣告
Property DefaultFile As ISharePointProjectItemFile
    Get
    Set
ISharePointProjectItemFile DefaultFile { get; set; }

屬性值

型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectItemFile
表示檔案的物件。

備註

SharePoint 擴充可以設定此屬性或處理 Open 事件來控制專案項目資料夾節點的啟動行為。

.NET Framework 安全性

請參閱

參考

ISharePointProjectItem 介面

Microsoft.VisualStudio.SharePoint 命名空間