IFeatureValidationRule.ValidateProjectItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.