共用方式為


IFeature 介面

代表 SharePoint 專案系統內功能的定義。

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

語法

'宣告
Public Interface IFeature _
    Inherits IFeatureManifest, IObservableModelElement
public interface IFeature : IFeatureManifest, 
    IObservableModelElement

IFeature 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 ActivateOnDefault 取得或設定是否在安裝期間啟動功能。 (繼承自 IFeatureManifest)。
公用屬性 ActivationDependencies 取得啟動目前功能所依據的功能清單。 (繼承自 IFeatureManifest)。
公用屬性 AlwaysForceInstall 取得或設定是否應強制安裝功能,即使該功能已經安裝。 (繼承自 IFeatureManifest)。
公用屬性 AutoActivateInCentralAdmin 取得或設定是否預設為系統管理員啟動功能。 (繼承自 IFeatureManifest)。
公用屬性 Creator 取得或設定建立功能之開發人員的姓名。 (繼承自 IFeatureManifest)。
公用屬性 DefaultResourceFile 取得或設定擷取功能資源的中央資源檔案。 (繼承自 IFeatureManifest)。
公用屬性 DeploymentPath 取得或設定部署功能所在套件中的路徑。
公用屬性 Description 取得或設定功能所進行操作的描述。 (繼承自 IFeatureManifest)。
公用屬性 Elements 取得功能元素定義和支援檔案的清單。 (繼承自 IFeatureManifest)。
公用屬性 FeatureId 取得或設定功能的 SharePoint ID。 (繼承自 IFeatureManifest)。
公用屬性 ImageAltText 取得或設定關聯於功能之影像的文字。 (繼承自 IFeatureManifest)。
公用屬性 ImageUrl 取得或設定與功能相關聯之影像的相對 URL。 (繼承自 IFeatureManifest)。
公用屬性 IsDesignerEnabled 取得功能的設計工具是否已啟用。
公用屬性 IsHidden 取得或設定是否在可啟動功能清單中顯示這項功能。 (繼承自 IFeatureManifest)。
公用屬性 ProjectItems 取得利用該功能部署的專案項目清單。
公用屬性 Properties 取得功能屬性的預設值清單。 (繼承自 IFeatureManifest)。
公用屬性 ReceiverAssembly 取得或設定組件的完整名稱,此組件內含功能的事件接收器。 (繼承自 IFeatureManifest)。
公用屬性 ReceiverClass 取得或設定功能之事件接收器的類別名稱。 (繼承自 IFeatureManifest)。
公用屬性 RequireResources 取得或設定 SharePoint 是否會檢查特定語言或文化特性的資源。 (繼承自 IFeatureManifest)。
公用屬性 Scope 取得或設定要在其中啟動功能的內容。 (繼承自 IFeatureManifest)。
公用屬性 SolutionId 取得或設定即將安裝功能的 SharePoint 伺服器 ID。此屬性僅做基礎結構之用,而且不應該使用。 (繼承自 IFeatureManifest)。
公用屬性 Title 取得或設定功能的標題 (最多 255 個字元)。 (繼承自 IFeatureManifest)。
公用屬性 UIVersion 取得或設定表示網站相容版本的字串。 (繼承自 IFeatureManifest)。
公用屬性 UpgradeActions 取得升級目前功能時執行動作的清單。 (繼承自 IFeatureManifest)。
公用屬性 UpgradeActionsReceiverAssembly 取得或設定組件的完整名稱,它內含負責處理自訂升級動作的功能事件接收器。 (繼承自 IFeatureManifest)。
公用屬性 UpgradeActionsReceiverClass 取得或設定處理自訂升級動作之功能事件接收器的類別名稱。 (繼承自 IFeatureManifest)。
公用屬性 Version 取得或設定功能版本的 System.Version 相容表示。此值最多可以是以小數點分隔的四個數字。 (繼承自 IFeatureManifest)。

回頁首

事件

  名稱 說明
公用事件 PropertyChanged 發生於已變更 DSL 模型項目時。 (繼承自 IObservableModelElement)。
公用事件 PropertyChanging 發生於正在變更 DSL 模型項目時。 (繼承自 IObservableModelElement)。

回頁首

請參閱

參考

Microsoft.VisualStudio.SharePoint.Features 命名空間