Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
Determines whether a project item can be added to the package.
Namespace: Microsoft.VisualStudio.SharePoint.Validation
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function ValidatePackageForProjectItem ( _
projectPackage As ISharePointProjectPackage, _
projectItem As ISharePointProjectItem _
) As IValidationResult
IValidationResult ValidatePackageForProjectItem(
ISharePointProjectPackage projectPackage,
ISharePointProjectItem projectItem
)
Parameters
- projectPackage
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectPackage
The package to validate.
- projectItem
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItem
The project item 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.