Compartir a través de


Clase DataServiceEntityAttribute

Marca una clase como un tipo de entidad en Servicios de datos de Microsoft WCF.

Jerarquía de herencia

System.Object
  System.Attribute
    System.Data.Services.Common.DataServiceEntityAttribute

Espacio de nombres:  System.Data.Services.Common
Ensamblado:  Microsoft.Data.Services.Client (en Microsoft.Data.Services.Client.dll)

Sintaxis

'Declaración
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False)> _
Public NotInheritable Class DataServiceEntityAttribute _
    Inherits Attribute
'Uso
Dim instance As DataServiceEntityAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class DataServiceEntityAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class DataServiceEntityAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type DataServiceEntityAttribute =  
    class
        inherit Attribute
    end
public final class DataServiceEntityAttribute extends Attribute

El tipo DataServiceEntityAttribute expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público DataServiceEntityAttribute Crea una nueva instancia de la clase DataServiceEntityAttribute.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública TypeId (Se hereda de Attribute.)

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Attribute.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Attribute.)
Método público GetType (Se hereda de Object.)
Método público IsDefaultAttribute (Se hereda de Attribute.)
Método público Match (Se hereda de Attribute.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Object.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado _Attribute.GetIDsOfNames (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute.GetTypeInfo (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute.GetTypeInfoCount (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute.Invoke (Se hereda de Attribute.)

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres System.Data.Services.Common

Otros recursos

Materialización de objetos (WCF Data Services)