InjectAttribute Classe

Définition

Indique que la propriété associée doit avoir une valeur injectée à partir du fournisseur de services lors de l’initialisation.

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
Héritage
InjectAttribute
Attributs

Constructeurs

InjectAttribute()

Indique que la propriété associée doit avoir une valeur injectée à partir du fournisseur de services lors de l’initialisation.

Propriétés

Key

Obtient ou définit l’objet qui spécifie la clé du service à injecter.

S’applique à