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 package would violate this rule if the specified feature were added.
Namespace: Microsoft.VisualStudio.SharePoint.Validation
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Sub ValidateFeature ( _
context As IPackageValidationContext, _
feature As ISharePointProjectFeature _
)
void ValidateFeature(
IPackageValidationContext context,
ISharePointProjectFeature feature
)
Parameters
context
Type: Microsoft.VisualStudio.SharePoint.Validation.IPackageValidationContextContextual data associated with the package and validation.
feature
Type: Microsoft.VisualStudio.SharePoint.ISharePointProjectFeatureThe feature with which to validate the package.
Remarks
If this rule applies only to project items 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.