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 | |
---|---|---|
![]() |
EntitySetAttribute | Crea una nueva instancia de EntitySetAttribute. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
![]() |
EntitySet | Obtiene el conjunto de entidades al que pertenece la clase. |
![]() |
TypeId | (Se hereda de Attribute.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
![]() |
Equals | (Se hereda de Attribute.) |
![]() |
Finalize | (Se hereda de Object.) |
![]() |
GetHashCode | (Se hereda de Attribute.) |
![]() |
GetType | (Se hereda de Object.) |
![]() |
IsDefaultAttribute | (Se hereda de Attribute.) |
![]() |
Match | (Se hereda de Attribute.) |
![]() |
MemberwiseClone | (Se hereda de Object.) |
![]() |
ToString | (Se hereda de Object.) |
Arriba
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
![]() ![]() |
_Attribute.GetIDsOfNames | (Se hereda de Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfo | (Se hereda de Attribute.) |
![]() ![]() |
_Attribute.GetTypeInfoCount | (Se hereda de Attribute.) |
![]() ![]() |
_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.