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);
public void ValidateProjectItem (Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext context, Microsoft.VisualStudio.SharePoint.ISharePointProjectItem projectItem);
abstract member ValidateProjectItem : Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext * Microsoft.VisualStudio.SharePoint.ISharePointProjectItem -> unit
Public Sub ValidateProjectItem (context As IPackageValidationContext, projectItem As ISharePointProjectItem)

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