Share via


IPackageValidationProvider Interface

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

Represents a component that can validate a SharePoint package and its constituent parts. Validation consists of the application of rules to the package and returning a list of any violated rules.

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

Syntax

'Declaration
<GuidAttribute("B09AD57B-D853-416D-8156-F054A2B1516F")> _
Public Interface IPackageValidationProvider
[GuidAttribute("B09AD57B-D853-416D-8156-F054A2B1516F")]
public interface IPackageValidationProvider

The IPackageValidationProvider type exposes the following members.

Methods

  Name Description
Public method ValidateFeature Determines whether an entire feature or any of its constituent project items violate any of the validation rules.
Public method ValidateFeatureForProjectItem Determines whether a project item can be added to the feature.
Public method ValidatePackage Determines whether an entire package or any of its constituent parts (features and project items) violate any of the validation rules.
Public method ValidatePackageForFeature Determines whether a feature can be added to the package.
Public method ValidatePackageForProjectItem Determines whether a project item can be added to the package.

Top

Remarks

This interface is not expected to be implemented by third parties.

See Also

Reference

Microsoft.VisualStudio.SharePoint.Validation Namespace