Sdílet prostřednictvím


IPackageValidationProvider.ValidatePackage(ISharePointProjectPackage) Method

Definition

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

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

public:
 Microsoft::VisualStudio::SharePoint::Validation::IValidationResult ^ ValidatePackage(Microsoft::VisualStudio::SharePoint::ISharePointProjectPackage ^ projectPackage);
public Microsoft.VisualStudio.SharePoint.Validation.IValidationResult ValidatePackage (Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage projectPackage);
abstract member ValidatePackage : Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage -> Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
Public Function ValidatePackage (projectPackage As ISharePointProjectPackage) As IValidationResult

Parameters

projectPackage
ISharePointProjectPackage

The package to validate.

Returns

An object representing the result of the validation.

Applies to