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)
Available in Sandboxed Solutions: No
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