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);

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