InheritanceAttribute InheritanceAttribute InheritanceAttribute InheritanceAttribute Class

Definition

Indica si el componente asociado a este atributo se ha heredado de una clase base. Indicates whether the component associated with this attribute has been inherited from a base class. Esta clase no puede heredarse. This class cannot be inherited.

public ref class InheritanceAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Event)]
public sealed class InheritanceAttribute : Attribute
type InheritanceAttribute = class
    inherit Attribute
Public NotInheritable Class InheritanceAttribute
Inherits Attribute
Inheritance
InheritanceAttributeInheritanceAttributeInheritanceAttributeInheritanceAttribute
Attributes

Remarks

InheritanceAttribute representa el tipo y nivel de herencia de un miembro.InheritanceAttribute represents the type and level of inheritance of a member.

Cuando el AddInheritedComponents método de la IInheritanceService búsquedas de los campos de un componente para identificar los campos que se heredan de una clase base, el método representa el nivel de herencia de cada componente mediante un InheritanceAttribute.When the AddInheritedComponents method of the IInheritanceService searches the component fields of a component to identify fields that are inherited from a base class, the method represents the inheritance level of each component using an InheritanceAttribute.

Constructors

InheritanceAttribute() InheritanceAttribute() InheritanceAttribute() InheritanceAttribute()

Inicializa una nueva instancia de la clase InheritanceAttribute. Initializes a new instance of the InheritanceAttribute class.

InheritanceAttribute(InheritanceLevel) InheritanceAttribute(InheritanceLevel) InheritanceAttribute(InheritanceLevel) InheritanceAttribute(InheritanceLevel)

Inicializa una nueva instancia de la clase InheritanceAttribute con el nivel de herencia especificado. Initializes a new instance of the InheritanceAttribute class with the specified inheritance level.

Fields

Default Default Default Default

Especifica que el valor predeterminado para InheritanceAttribute es NotInherited. Specifies that the default value for InheritanceAttribute is NotInherited. Este campo es de sólo lectura. This field is read-only.

Inherited Inherited Inherited Inherited

Especifica que el componente se hereda. Specifies that the component is inherited. Este campo es de sólo lectura. This field is read-only.

InheritedReadOnly InheritedReadOnly InheritedReadOnly InheritedReadOnly

Especifica que el componente se hereda y es de sólo lectura. Specifies that the component is inherited and is read-only. Este campo es de sólo lectura. This field is read-only.

NotInherited NotInherited NotInherited NotInherited

Especifica que el componente no se hereda. Specifies that the component is not inherited. Este campo es de sólo lectura. This field is read-only.

Properties

InheritanceLevel InheritanceLevel InheritanceLevel InheritanceLevel

Obtiene o establece el nivel de herencia actual almacenado en este atributo. Gets or sets the current inheritance level stored in this attribute.

TypeId TypeId TypeId TypeId

Cuando se implementa en una clase derivada, obtiene un identificador único para este Attribute. When implemented in a derived class, gets a unique identifier for this Attribute.

(Inherited from Attribute)

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Reemplace para comprobar la igualdad. Override to test for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Devuelve el código hash de este objeto. Returns the hashcode for this object.

GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual. Gets the Type of the current instance.

(Inherited from Object)
IsDefaultAttribute() IsDefaultAttribute() IsDefaultAttribute() IsDefaultAttribute()

Obtiene un valor que indica si el valor actual del atributo es su valor predeterminado. Gets a value indicating whether the current value of the attribute is the default value for the attribute.

Match(Object) Match(Object) Match(Object) Match(Object)

Cuando se invalida en una clase derivada, devuelve un valor que indica si esta instancia es igual a un objeto especificado. When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Inherited from Attribute)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual. Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Convierte este atributo en una cadena. Converts this attribute to a string.

Explicit Interface Implementations

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Asigna un conjunto de nombres a un conjunto correspondiente de identificadores de envío. Maps a set of names to a corresponding set of dispatch identifiers.

(Inherited from Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Obtiene la información de tipos de un objeto, que puede utilizarse para obtener la información de tipos de una interfaz. Retrieves the type information for an object, which can be used to get the type information for an interface.

(Inherited from Attribute)
_Attribute.GetTypeInfoCount(UInt32) _Attribute.GetTypeInfoCount(UInt32) _Attribute.GetTypeInfoCount(UInt32) _Attribute.GetTypeInfoCount(UInt32)

Recupera el número de interfaces de información de tipo que proporciona un objeto (0 ó 1). Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Inherited from Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Proporciona acceso a las propiedades y los métodos expuestos por un objeto. Provides access to properties and methods exposed by an object.

(Inherited from Attribute)

Applies to

See Also