Share via


WcfValidationBehaviorAttribute class

The WCFValidationBehaviorAttribute marks WCF service classes that should perform per-call validation. Marking a WCF class with this attribute will apply a parameter inspector to the class that will be invoked on the input and output of every serice call made to that class. The parameter inspector wraps the ValidationHandler's ValidateIn and ValidateOut method so that constraint validation remains transparent

Inheritance hierarchy

System.Object
  System.Attribute
    Microsoft.Web.Constraint.WcfValidationBehaviorAttribute

Namespace:  Microsoft.Web.Constraint
Assembly:  Microsoft.Web.Constraint (in Microsoft.Web.Constraint.dll)

Syntax

'Declaration
Public NotInheritable Class WcfValidationBehaviorAttribute _
    Inherits Attribute
'Usage
Dim instance As WcfValidationBehaviorAttribute
public sealed class WcfValidationBehaviorAttribute : Attribute

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

WcfValidationBehaviorAttribute members

Microsoft.Web.Constraint namespace