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

AspectWeaverInstance.ValidateTargetType Method

Validates whether the specified type is supported by this aspect weaver.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
protected virtual bool ValidateTargetType(
	IType type
)

Parameters

type
Type: PostSharp.Sdk.CodeModel.IType
The target type to validate.

Return Value

Type: Boolean
true if the specifed type is supported, false otherwise.
Remarks
The meaning of the type parameter depends on the actual aspect weaver implementation. E.g. it can represent a parameter type for a method level aspect weaver or a property type for a location level aspect weaver.
See Also