ChangeInterceptorAttribute Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ChangeInterceptorAttribute _
    Inherits Attribute
'Usage
Dim instance As ChangeInterceptorAttribute
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class ChangeInterceptorAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = true, Inherited = true)]
public ref class ChangeInterceptorAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true, Inherited = true)>]
type ChangeInterceptorAttribute =  
    class 
        inherit Attribute 
    end
public final class ChangeInterceptorAttribute extends Attribute

The ChangeInterceptorAttribute type exposes the following members.

Constructors

  Name Description
Public method ChangeInterceptorAttribute Creates a new change interceptor for an entity set specified by the parameter entitySetName.

Top

Properties

  Name Description
Public property EntitySetName Gets the name of the entity set to which the interceptor applies.
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

Remarks

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.

-

Examples

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

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

System.Data.Services Namespace