ILocationValidationAspect<T>.ValidateValue Method
Validates the value being assigned to the location to which the current aspect has been applied.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
Exception ValidateValue(
	T value,
	string locationName,
	LocationKind locationKind
)

Parameters

value
Type: T
Value being applied to the location.
locationName
Type: System.String
Name of the location.
locationKind
Type: PostSharp.Reflection.LocationKind
Location kind (Field, Property, or Parameter).

Return Value

Type: Exception
The Exception to be thrown, or null if no exception needs to be thrown.
See Also