Classe ChangeInterceptorAttribute
ChangeInterceptorAttribute su un metodo è utilizzato per elaborare aggiornamenti sul nome del set di entità specificato.
Gerarchia di ereditarietà
System.Object
System.Attribute
System.Data.Services.ChangeInterceptorAttribute
Spazio dei nomi System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Sintassi
'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ChangeInterceptorAttribute _
Inherits Attribute
'Utilizzo
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
Nel tipo ChangeInterceptorAttribute sono esposti i membri seguenti.
Costruttori
Nome | Descrizione | |
---|---|---|
![]() |
ChangeInterceptorAttribute | Crea un nuovo intercettore di modifica per un set di entità specificato dal parametro entitySetName. |
In alto
Proprietà
Nome | Descrizione | |
---|---|---|
![]() |
EntitySetName | Ottiene il nome del set di entità a cui appartiene l'intercettore. |
![]() |
TypeId | Ereditato da Attribute. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
![]() |
Equals | Ereditato da Attribute. |
![]() |
Finalize | Ereditato da Object. |
![]() |
GetHashCode | Ereditato da Attribute. |
![]() |
GetType | Ereditato da Object. |
![]() |
IsDefaultAttribute | Ereditato da Attribute. |
![]() |
Match | Ereditato da Attribute. |
![]() |
MemberwiseClone | Ereditato da Object. |
![]() |
ToString | Ereditato da Object. |
In alto
Implementazioni esplicite dell'interfaccia
Nome | Descrizione | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | Ereditato da Attribute. |
![]() ![]() |
_Attribute.GetTypeInfo | Ereditato da Attribute. |
![]() ![]() |
_Attribute.GetTypeInfoCount | Ereditato da Attribute. |
![]() ![]() |
_Attribute.Invoke | Ereditato da Attribute. |
In alto
Osservazioni
L'autorizzazione delle modifiche a livello di risorsa e la convalida viene implementata da metodi annotati su ChangeInterceptorAttribute. WCF Data Services fornisce l'infrastruttura richiesta affinché gli sviluppatori del servizio scrivano regole dell'elaborazione delle modifiche per singole entità e la convalida.
Controllo di accesso a livello di entità e convalida possono essere applicati tramite intercettori della query. Per ulteriori informazioni, vedere QueryInterceptorAttribute.
-
Esempi
Per ulteriori informazioni, vedere l'esempio nell'argomento QueryInterceptorAttribute.
Protezione dei thread
I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.