IPackageValidationRule.ValidateFeature Method

Definition

Determines whether a package would violate this rule if the specified feature were added.

public:
 void ValidateFeature(Microsoft::VisualStudio::SharePoint::Validation::IPackageValidationContext ^ context, Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ feature);
public void ValidateFeature (Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext context, Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature feature);
abstract member ValidateFeature : Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext * Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature -> unit
Public Sub ValidateFeature (context As IPackageValidationContext, feature As ISharePointProjectFeature)

Parameters

context
IPackageValidationContext

Contextual data associated with the package and validation.

feature
ISharePointProjectFeature

The feature with which to validate the package.

Remarks

If this rule applies only to project items in a package, then this method does nothing.

Applies to