PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver.​Aspect­Weavers Namespace / Field­Level­Aspect­Weaver Class / Field­Level­Aspect­Weaver Methods / Field­Level­Aspect­Weaver.​Validate­Aspect­Instance Method

FieldLevelAspectWeaver.ValidateAspectInstance Method

Validates an aspect instance, i.e. a concrete usage of an aspect of the type supported by the current AspectWeaver.

Namespace:  PostSharp.Sdk.AspectWeaver.AspectWeavers
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public override bool ValidateAspectInstance(
	AspectInstanceInfo aspectInstanceInfo
)

Parameters

aspectInstanceInfo
Type: PostSharp.Sdk.AspectWeaver.AspectInstanceInfo
Information about the aspect instance (or aspect usage).

Return Value

Type: Boolean
true if the aspect usage is valid, false if it is invalid
See Also