IPackageValidationRule.ValidateProjectItem 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 project item is added.
Namespace: Microsoft.VisualStudio.SharePoint.Validation
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Sub ValidateProjectItem ( _
context As IPackageValidationContext, _
projectItem As ISharePointProjectItem _
)
void ValidateProjectItem(
IPackageValidationContext context,
ISharePointProjectItem projectItem
)
Parameters
context
Type: Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContextContextual data associated with the package and validation.
projectItem
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemThe project item with which to validate the package.
Remarks
If this rule applies only to features in a package, then this method does nothing.
.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.