Compartir a través de


IPackageValidationRule.ValidateFeature Method

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

Determines whether a package would violate this rule if the specified feature were added.

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

Syntax

'Declaration
Sub ValidateFeature ( _
    context As IPackageValidationContext, _
    feature As ISharePointProjectFeature _
)
void ValidateFeature(
    IPackageValidationContext context,
    ISharePointProjectFeature feature
)

Parameters

Remarks

If this rule applies only to project items in a package, then this method does nothing.

.NET Framework Security

See Also

Reference

IPackageValidationRule Interface

Microsoft.VisualStudio.SharePoint.Validation Namespace