Share via


IPackageValidationProvider.ValidatePackage Method

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

Determines whether an entire package or any of its constituent parts (features and project items) violate any of the validation rules.

Namespace:  Microsoft.VisualStudio.SharePoint.Validation
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Function ValidatePackage ( _
    projectPackage As ISharePointProjectPackage _
) As IValidationResult
IValidationResult ValidatePackage(
    ISharePointProjectPackage projectPackage
)

Parameters

Return Value

Type: Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
An object representing the result of the validation.

.NET Framework Security

See Also

Reference

IPackageValidationProvider Interface

Microsoft.VisualStudio.SharePoint.Validation Namespace