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

AspectWeaver.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
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.10.0 (6.10.10.0)
Syntax
C#
public virtual 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