共用方式為


IFeatureValidationRule.ValidateProjectItem 方法

判斷加入指定的專案項目時功能是否違反規則。

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

語法

'宣告
Sub ValidateProjectItem ( _
    context As IFeatureValidationContext, _
    projectItem As ISharePointProjectItem _
)
void ValidateProjectItem(
    IFeatureValidationContext context,
    ISharePointProjectItem projectItem
)

參數

備註

物件,代表正在檢查的驗證規則。

.NET Framework 安全性

請參閱

參考

IFeatureValidationRule 介面

Microsoft.VisualStudio.SharePoint.Validation 命名空間