ChangeInterceptorAttribute 类
继承层次结构
System.Object
System.Attribute
System.Data.Services.ChangeInterceptorAttribute
命名空间: System.Data.Services
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ChangeInterceptorAttribute _
Inherits Attribute
用法
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
ChangeInterceptorAttribute 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ChangeInterceptorAttribute | 为参数 entitySetName 指定的实体集创建新的更改拦截器。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
EntitySetName | 获取向其应用拦截器的实体集的名称 |
![]() |
TypeId | (从 Attribute 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | (从 Attribute 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetHashCode | (从 Attribute 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
IsDefaultAttribute | (从 Attribute 继承。) |
![]() |
Match | (从 Attribute 继承。) |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
ToString | (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | (从 Attribute 继承。) |
![]() ![]() |
_Attribute.GetTypeInfo | (从 Attribute 继承。) |
![]() ![]() |
_Attribute.GetTypeInfoCount | (从 Attribute 继承。) |
![]() ![]() |
_Attribute.Invoke | (从 Attribute 继承。) |
页首
注释
资源水平的更改授权和验证由 ChangeInterceptorAttribute 上批注的方法实现。 WCF 数据服务 提供服务开发人员编写每个实体更改处理规则和验证所需的基础结构。
通过查询拦截器可以执行实体级别的访问控制和验证。 有关更多信息,请参见 QueryInterceptorAttribute。
-
示例
有关更多信息,请参见 QueryInterceptorAttribute 主题中的示例。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。