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
)
参数
- projectFeature
类型:Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature
要验证的功能。
- projectItem
类型:Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
要针对其验证功能的项目项。
返回值
类型:Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
一个表示验证结果的对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。