InjectAttribute 類別

定義

表示相關聯的屬性應該在初始化期間從服務提供者插入值。

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
繼承
InjectAttribute
屬性

建構函式

InjectAttribute()

表示相關聯的屬性應該在初始化期間從服務提供者插入值。

屬性

Key

取得或設定 物件,指定要插入之服務的索引鍵。

適用於