PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Constraints Namespace / Protected­Attribute Class / Protected­Attribute Methods / Protected­Attribute.​Validate­Constraint Method
ProtectedAttribute.ValidateConstraint Method
Validates the fact that the constraint has been applied on a valid element of code. When this method returns false, the constraint is silently ignored.

Namespace: PostSharp.Constraints
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public override bool ValidateConstraint(
	Object target
)

Parameters

target
Type: System.Object

Return Value

Type: Boolean
true if the constraint has been applied on a valid element of code, otherwise false.

Implements

IConstraint.ValidateConstraint(Object)
See Also