FromKeyedServicesAttribute 构造函数

定义

重载

FromKeyedServicesAttribute()

Source:
FromKeyedServicesAttribute.cs
Source:
FromKeyedServicesAttribute.cs

创建设置为 LookupModeInheritKey的新FromKeyedServicesAttribute实例。

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

适用于

FromKeyedServicesAttribute(Object)

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

创建新的 FromKeyedServicesAttribute 实例。

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)

参数

key
Object

要绑定到的键服务密钥。

适用于