SPSolutionValidatorCollection.Ensure method
Inserts a solution validator after all existing solution validators if it does not exist. Behaves the same as Add.
Namespace: Microsoft.SharePoint.UserCode
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function Ensure ( _
validator As SPSolutionValidator _
) As SPSolutionValidator
'Usage
Dim instance As SPSolutionValidatorCollection
Dim validator As SPSolutionValidator
Dim returnValue As SPSolutionValidator
returnValue = instance.Ensure(validator)
public override SPSolutionValidator Ensure(
SPSolutionValidator validator
)
Parameters
- validator
Type: Microsoft.SharePoint.UserCode.SPSolutionValidator
Return value
Type: Microsoft.SharePoint.UserCode.SPSolutionValidator
Returns SPSolutionValidator.
See also
Reference
SPSolutionValidatorCollection class