IPackageValidationProvider.ValidatePackageForFeature Method
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
Determines whether a feature can be added to the package.
Namespace: Microsoft.VisualStudio.SharePoint.Validation
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function ValidatePackageForFeature ( _
projectPackage As ISharePointProjectPackage, _
projectFeature As ISharePointProjectFeature _
) As IValidationResult
IValidationResult ValidatePackageForFeature(
ISharePointProjectPackage projectPackage,
ISharePointProjectFeature projectFeature
)
Parameters
projectPackage
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectPackageThe package to validate.
projectFeature
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectFeatureThe feature with which to validate the package.
Return Value
Type: Microsoft.VisualStudio.SharePoint.Validation.IValidationResult
An object representing the result of the validation.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.