Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Determines whether a feature would violate the 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 IFeatureValidationContext, _
projectItem As ISharePointProjectItem _
)
void ValidateProjectItem(
IFeatureValidationContext context,
ISharePointProjectItem projectItem
)
Parameters
context
Type: Microsoft.VisualStudio.SharePoint.Validation.IFeatureValidationContextThe contextual data associated with the feature and validation.
projectItem
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectItemThe project item with which the feature is validated.
Remarks
An object that represents the validation rule being checked.
.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.