IPackageValidationRule.ValidateProjectItem Method

Definition

Determines whether a package would violate this rule if the specified project item is added.

public void ValidateProjectItem (Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext context, Microsoft.VisualStudio.SharePoint.ISharePointProjectItem projectItem);

Parameters

context
IPackageValidationContext

Contextual data associated with the package and validation.

projectItem
ISharePointProjectItem

The project item with which to validate the package.

Remarks

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

Applies to