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

挿入するサービスのキーを指定する オブジェクトを取得または設定します。

適用対象