共用方式為


IFeatureValidationRule 介面

表示在 SharePoint 專案中驗證功能時要套用的規則。

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

語法

'宣告
Public Interface IFeatureValidationRule
public interface IFeatureValidationRule

IFeatureValidationRule 型別會公開下列成員。

方法

  名稱 說明
公用方法 ValidateFeature 判斷目前功能是否違反規則。
公用方法 ValidateProjectItem 判斷加入指定的專案項目時功能是否違反規則。

回頁首

備註

實作IPackageValidationRule來定義自訂驗證規則,來幫助您檢查 [SharePoint 專案中的封裝是有效的介面。如需詳細資訊,請參閱 HOW TO:建立 SharePoint 方案的自訂功能和封裝驗證規則

實作此介面的類別必須包含可由專案系統探索的 System.ComponentModel.Composition.ExportAttribute

範例

日期

記錄

原因

2010 年 5 月

加入新的備註,以及示範如何實作這個介面的主題連結

補充資訊。

請參閱

參考

Microsoft.VisualStudio.SharePoint.Validation 命名空間