ChangeInterceptorAttribute Class

The ChangeInterceptorAttribute on a method is used to process updates on the specified entity set name.


Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = true, Inherited = true)]
public ref class ChangeInterceptorAttribute sealed : public Attribute

The ChangeInterceptorAttribute type exposes the following members.

Public methodChangeInterceptorAttributeCreates a new change interceptor for an entity set specified by the parameter entitySetName.

Public propertyEntitySetNameGets the name of the entity set to which the interceptor applies.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)

Resource-level change authorization and validation is implemented by methods annotated on the ChangeInterceptorAttribute. WCF Data Services provides the infrastructure required for service developers to write per-entity change processing rules and validation.

Entity-level access control and validation can be enforced through query interceptors. For more information, see QueryInterceptorAttribute.

For more information, see the example in the QueryInterceptorAttribute topic.

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