IPackageValidationRule.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 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.