Compartir a través de


Clase EntitySetAttribute

Indica el conjunto de entidades al que pertenece una clase de servicio de datos de cliente.

Jerarquía de herencia

System.Object
  System.Attribute
    System.Data.Services.Common.EntitySetAttribute

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 EntitySetAttribute _
    Inherits Attribute
'Uso
Dim instance As EntitySetAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EntitySetAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false)]
public ref class EntitySetAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)>]
type EntitySetAttribute =  
    class
        inherit Attribute
    end
public final class EntitySetAttribute extends Attribute

El tipo EntitySetAttribute expone los siguientes miembros.

Constructores

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

Arriba

Propiedades

  Nombre Descripción
Propiedad pública EntitySet Obtiene el conjunto de entidades al que pertenece la clase.
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

Comentarios

El cliente utiliza la clase EntitySetAttribute durante el enlace de datos para determinar el nombre del conjunto de entidades al que pertenece una clase. El cuadro de diálogo Agregar referencia de servicio genera este atributo cuando se utiliza la opción Enlace y la herramienta DataSvcUtil.exe lo genera cuando se proporciona la opción /binding.

Debe aplicar EntitySetAttribute a cualquier clase de servicio de datos cliente proporcionada por el usuario que se utilice con enlace de datos.

EntitySetAttribute solo se admite cuando hay un conjunto de entidades asociado al tipo.

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