Share via


FromKeyedServicesAttribute(Object) 构造函数

定义

创建一个新的 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

要绑定到的键服务密钥。

适用于