IPackageValidationRule.ValidateFeature 方法
判斷加入指定的功能時封裝是否違反這項規則。
命名空間: Microsoft.VisualStudio.SharePoint.Validation
組件: Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)
語法
'宣告
Sub ValidateFeature ( _
context As IPackageValidationContext, _
feature As ISharePointProjectFeature _
)
void ValidateFeature(
IPackageValidationContext context,
ISharePointProjectFeature feature
)
參數
- context
型別:Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext
與封裝和驗證有關聯的內容資料。
- feature
型別:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
用於驗證封裝的功能。
備註
如果這條規則僅適用於封裝中的專案項目,則此方法沒有作用。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。