Sdílet prostřednictvím


IPackageValidationProvider.ValidateFeatureForProjectItem Method

Definition

Determines whether a project item can be added to the feature.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 Microsoft::VisualStudio::SharePoint::Validation::IValidationResult ^ ValidateFeatureForProjectItem(Microsoft::VisualStudio::SharePoint::ISharePointProjectFeature ^ projectFeature, Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ projectItem);
public Microsoft.VisualStudio.SharePoint.Validation.IValidationResult ValidateFeatureForProjectItem (Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature projectFeature, Microsoft.VisualStudio.SharePoint.ISharePointProjectItem projectItem);
abstract member ValidateFeatureForProjectItem : Microsoft.VisualStudio.SharePoint.ISharePointProjectFeature * Microsoft.VisualStudio.SharePoint.ISharePointProjectItem -> Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
Public Function ValidateFeatureForProjectItem (projectFeature As ISharePointProjectFeature, projectItem As ISharePointProjectItem) As IValidationResult

Parameters

projectFeature
ISharePointProjectFeature

The feature to validate.

projectItem
ISharePointProjectItem

The project item with which to validate the feature.

Returns

An object representing the result of the validation.

Applies to