IPackageValidationRule.ValidateFeature 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 feature were added.
public:
void ValidateFeature(Microsoft::VisualStudio::SharePoint::Validation::IPackageValidationContext ^ context, Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ feature);
public void ValidateFeature (Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext context, Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature feature);
abstract member ValidateFeature : Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContext * Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature -> unit
Public Sub ValidateFeature (context As IPackageValidationContext, feature As ISharePointProjectFeature)
Parameters
- context
- IPackageValidationContext
Contextual data associated with the package and validation.
- feature
- ISharePointProjectFeature
The feature with which to validate the package.
Remarks
If this rule applies only to project items in a package, then this method does nothing.