Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

InjectAttribute.Key Property

Definition

Namespace:
Microsoft.AspNetCore.Components
Assembly:
Microsoft.AspNetCore.Components.dll
Package:
Microsoft.AspNetCore.Components v10.0.0
Package:
Microsoft.AspNetCore.Components v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components v8.0.19
Package:
Microsoft.AspNetCore.Components v9.0.8
Source:
InjectAttribute.cs
Source:
InjectAttribute.cs
Source:
InjectAttribute.cs
Source:
InjectAttribute.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the object that specifies the key of the service to inject.

public object? Key { get; init; }
member this.Key : obj with get, set
Public Property Key As Object

Property Value

Applies to


Feedback

Was this page helpful?