Sdílet prostřednictvím


IPackageValidationProvider.ValidatePackageForFeature Method

Definition

Determines whether a feature can be added to the package.

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

public:
 Microsoft::VisualStudio::SharePoint::Validation::IValidationResult ^ ValidatePackageForFeature(Microsoft::VisualStudio::SharePoint::ISharePointProjectPackage ^ projectPackage, Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ projectFeature);
public Microsoft.VisualStudio.SharePoint.Validation.IValidationResult ValidatePackageForFeature (Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage projectPackage, Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature projectFeature);
abstract member ValidatePackageForFeature : Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage * Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature -> Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
Public Function ValidatePackageForFeature (projectPackage As ISharePointProjectPackage, projectFeature As ISharePointProjectFeature) As IValidationResult

Parameters

projectPackage
ISharePointProjectPackage

The package to validate.

projectFeature
ISharePointProjectFeature

The feature with which to validate the package.

Returns

An object representing the result of the validation.

Applies to