ServiceKeyAttribute Class

Definition

Specifies the parameter to inject the key that was used for registration or resolution.

C#
[System.AttributeUsage(System.AttributeTargets.Parameter)]
public class ServiceKeyAttribute : Attribute
Inheritance
ServiceKeyAttribute
Attributes

Constructors

Applies to

Produk Versi
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)