PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Threading Namespace/Thread­Safety­Policy Class/Thread­Safety­Policy Methods/Thread­Safety­Policy.​Validate­Code Method

ThreadSafetyPolicy.ValidateCode Method

Validates the element of code to which the constraint is applied.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
public override void ValidateCode(
	Object target
)

Parameters

target
Type: System.Object
Element of code to which the constraint is applied (Assembly, Type, MethodInfo, ConstructorInfo, PropertyInfo, EventInfo, FieldInfo, ParameterInfo).

Implements

IScalarConstraint.ValidateCode(Object)
See Also