共用方式為


IPackageValidationProvider.ValidateFeatureForProjectItem 方法

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

判斷專案項目是否可以加入至功能。

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

語法

'宣告
Function ValidateFeatureForProjectItem ( _
    projectFeature As ISharePointProjectFeature, _
    projectItem As ISharePointProjectItem _
) As IValidationResult
IValidationResult ValidateFeatureForProjectItem(
    ISharePointProjectFeature projectFeature,
    ISharePointProjectItem projectItem
)

參數

傳回值

型別:Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
表示驗證結果的物件。

.NET Framework 安全性

請參閱

參考

IPackageValidationProvider 介面

Microsoft.VisualStudio.SharePoint.Validation 命名空間