Share via


FromKeyedServicesAttribute Constructors

Definition

Overloads

FromKeyedServicesAttribute()

Source:
FromKeyedServicesAttribute.cs

Creates a new FromKeyedServicesAttribute instance with LookupMode set to InheritKey.

public:
 FromKeyedServicesAttribute();
public FromKeyedServicesAttribute();
Public Sub New ()

Applies to

FromKeyedServicesAttribute(Object)

Source:
FromKeyedServicesAttribute.cs
Source:
FromKeyedServicesAttribute.cs
Source:
FromKeyedServicesAttribute.cs

Creates a new FromKeyedServicesAttribute instance.

public:
 FromKeyedServicesAttribute(System::Object ^ key);
public FromKeyedServicesAttribute(object? key);
new Microsoft.Extensions.DependencyInjection.FromKeyedServicesAttribute : obj -> Microsoft.Extensions.DependencyInjection.FromKeyedServicesAttribute
Public Sub New (key As Object)

Parameters

key
Object

The key of the keyed service to bind to.

Applies to