Share via


IFeatureValidationRule.ValidateProjectItem Method

Definition

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

public:
 void ValidateProjectItem(Microsoft::VisualStudio::SharePoint::Validation::IFeatureValidationContext ^ context, Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ projectItem);
public void ValidateProjectItem (Microsoft.VisualStudio.SharePoint.Validation.IFeatureValidationContext context, Microsoft.VisualStudio.SharePoint.ISharePointProjectItem projectItem);
abstract member ValidateProjectItem : Microsoft.VisualStudio.SharePoint.Validation.IFeatureValidationContext * Microsoft.VisualStudio.SharePoint.ISharePointProjectItem -> unit
Public Sub ValidateProjectItem (context As IFeatureValidationContext, projectItem As ISharePointProjectItem)

Parameters

context
IFeatureValidationContext

The contextual data associated with the feature and validation.

projectItem
ISharePointProjectItem

The project item with which the feature is validated.

Remarks

An object that represents the validation rule being checked.

Applies to