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
)
參數
- context
型別:Microsoft.VisualStudio.SharePoint.Validation.IFeatureValidationContext
與功能和驗證有關聯的內容資料。
- projectItem
型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
用於驗證功能的專案項目。
備註
物件,代表正在檢查的驗證規則。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。