Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Location­Contract­Attribute Class / Location­Contract­Attribute Methods / Location­Contract­Attribute.​Compile­Time­Validate Method

LocationContractAttribute.CompileTimeValidate Method

Validates that the current aspect has been applied to a valid location.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.18.0 (6.0.18.0)
Syntax
C#
protected virtual bool CompileTimeValidate(
	LocationInfo target
)

Parameters

target
Type: PostSharp.Reflection.LocationInfo
The location to which the current aspect has been applied.

Return Value

Type: Boolean
true if target is a valid target for the current aspect, otherwise false.
See Also