Export (0) Print
Expand All

ChangeInterceptorAttribute Class

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

System.Object
  System.Attribute
    System.Data.Services.ChangeInterceptorAttribute

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

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

The ChangeInterceptorAttribute type exposes the following members.

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

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

  NameDescription
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.)
Top

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.
Show:
© 2014 Microsoft