Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ParameterValidationAdvice Class

This advice is typically applied to service-layer methods in order to validate method arguments.

For a list of all members of this type, see ParameterValidationAdvice Members .

System.Object
   ParameterValidationAdvice

[Visual Basic]
Public Class ParameterValidationAdvice
    Implements IMethodBeforeAdvice, IBeforeAdvice, IAdvice, IApplicationContextAware
[C#]
public class ParameterValidationAdvice : IMethodBeforeAdvice, IBeforeAdvice, IAdvice, IApplicationContextAware

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Each argument that should be validated has to be marked with one or more ValidatedAttributes.

If the validation fails, this advice will throw ValidationException, thus preventing target method invocation.

Requirements

Namespace: Spring.Aspects.Validation

Assembly: Spring.Aop (in Spring.Aop.dll)

See Also

ParameterValidationAdvice Members | Spring.Aspects.Validation Namespace