FromKeyedServicesAttribute Constructors
Definition
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.
Overloads
FromKeyedServicesAttribute() |
Creates a new FromKeyedServicesAttribute instance with LookupMode set to InheritKey. |
FromKeyedServicesAttribute(Object) |
Creates a new FromKeyedServicesAttribute instance. |
FromKeyedServicesAttribute()
Creates a new FromKeyedServicesAttribute instance with LookupMode set to InheritKey.
public:
FromKeyedServicesAttribute();
public FromKeyedServicesAttribute();
Public Sub New ()
Applies to
FromKeyedServicesAttribute(Object)
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.