Share via


IPackageValidationProvider.ValidatePackageForProjectItem Method

Definition

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

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

public:
 Microsoft::VisualStudio::SharePoint::Validation::IValidationResult ^ ValidatePackageForProjectItem(Microsoft::VisualStudio::SharePoint::ISharePointProjectPackage ^ projectPackage, Microsoft::VisualStudio::SharePoint::ISharePointProjectItem ^ projectItem);
public Microsoft.VisualStudio.SharePoint.Validation.IValidationResult ValidatePackageForProjectItem (Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage projectPackage, Microsoft.VisualStudio.SharePoint.ISharePointProjectItem projectItem);
abstract member ValidatePackageForProjectItem : Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage * Microsoft.VisualStudio.SharePoint.ISharePointProjectItem -> Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
Public Function ValidatePackageForProjectItem (projectPackage As ISharePointProjectPackage, projectItem As ISharePointProjectItem) As IValidationResult

Parameters

projectPackage
ISharePointProjectPackage

The package to validate.

projectItem
ISharePointProjectItem

The project item with which to validate the package.

Returns

An object representing the result of the validation.

Applies to