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 | |
---|---|---|
ChangeInterceptorAttribute | Creates a new change interceptor for an entity set specified by the parameter entitySetName. |
Top
Properties
Name | Description | |
---|---|---|
EntitySetName | Gets the name of the entity set to which the interceptor applies. | |
TypeId | (Inherited from Attribute.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Attribute.) | |
GetHashCode | (Inherited from Attribute.) | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames | (Inherited from Attribute.) | |
_Attribute.GetTypeInfo | (Inherited from Attribute.) | |
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) | |
_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.