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

AspectWeaverInstance.Validate Method

Validates the aspect use in itself, without regard to other aspects.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public virtual bool Validate()

Return Value

Type: Boolean
true if the aspect is used correctly, otherwise false.
Remarks
Implementations should write messages using aMessageSource, then return true. If false is returned, the aspect is not further processed (for instance, the IAspectProvider interface is not used).
See Also