共用方式為


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 Data Services 提供所需的基礎結構,供服務開發人員撰寫每個實體變更處理規則和驗證。

實體層級存取控制和驗證可透過查詢攔截器來強制執行。 如需詳細資訊,請參閱 QueryInterceptorAttribute

-

範例

如需詳細資訊,請參閱 QueryInterceptorAttribute 主題中的範例。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

System.Data.Services 命名空間