InjectAttribute クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
初期化中に、関連付けられているプロパティにサービス プロバイダーから挿入された値が必要であることを示します。
public ref class InjectAttribute sealed : Attribute
C#
[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
- 属性
Inject |
初期化中に、関連付けられているプロパティにサービス プロバイダーから挿入された値が必要であることを示します。 |
Key |
挿入するサービスのキーを指定する オブジェクトを取得または設定します。 |
製品 | バージョン |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |