Share via


InjectAttribute Clase

Definición

Indica que la propiedad asociada debe tener un valor insertado desde el proveedor de servicios durante la inicialización.

public ref class InjectAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class InjectAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type InjectAttribute = class
    inherit Attribute
Public NotInheritable Class InjectAttribute
Inherits Attribute
Herencia
InjectAttribute
Atributos

Constructores

InjectAttribute()

Indica que la propiedad asociada debe tener un valor insertado desde el proveedor de servicios durante la inicialización.

Propiedades

Key

Obtiene o establece el objeto que especifica la clave del servicio que se va a insertar.

Se aplica a