SPSolutionValidatorCollection.Ensure 方法
插入解决方案验证程序毕竟现有解决方案验证器,如果它不存在。添加相同的行为方式。
命名空间: Microsoft.SharePoint.UserCode
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Function Ensure ( _
validator As SPSolutionValidator _
) As SPSolutionValidator
用法
Dim instance As SPSolutionValidatorCollection
Dim validator As SPSolutionValidator
Dim returnValue As SPSolutionValidator
returnValue = instance.Ensure(validator)
public override SPSolutionValidator Ensure(
SPSolutionValidator validator
)
参数
- validator
类型:Microsoft.SharePoint.UserCode.SPSolutionValidator
返回值
类型:Microsoft.SharePoint.UserCode.SPSolutionValidator
返回SPSolutionValidator。
另请参阅
引用
SPSolutionValidatorCollection 类