Windows apps
Collapse the table of content
Expand the table of content

ETagAttribute Class

This attribute on an entity type is used to specify the properties that determine changes in content.


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

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class ETagAttribute : Attribute

The ETagAttribute type exposes the following members.

Public methodETagAttribute(String)Initializes a new instance of the ETagAttribute class.
Public methodETagAttribute(String[])Initializes a new instance of the ETagAttribute class.

Public propertyPropertyNamesGets the names of properties used in the ETagAttribute.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)

Optimistic concurrency checks are enabled on a per type basis in WCF Data Services. For more information, see Making Changes to Data (WCF Data Services).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2016 Microsoft