This topic has not yet been rated - Rate this topic

IFeatureValidationRule Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a rule to apply when validating a Feature in a SharePoint project.

Namespace:  Microsoft.VisualStudio.SharePoint.Validation
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
public interface IFeatureValidationRule

The IFeatureValidationRule type exposes the following members.

  NameDescription
Public methodValidateFeatureDetermines whether a feature currently violates the rule.
Public methodValidateProjectItemDetermines whether a feature would violate the rule if the specified project item is added.
Top

Implement the IPackageValidationRule interface to define a custom validation rule to help verify that a package in a SharePoint project is valid. For more information, see How to: Create Custom Feature and Package Validation Rules for SharePoint Solutions.

Classes that implement this interface must include the System.ComponentModel.Composition.ExportAttribute to be discovered by the project system.

Date

History

Reason

May 2010

Added new remarks with links to topics that show how to implement this interface

Information enhancement.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.