語言

FromKeyedServicesAttribute 建構函式

定義

多載

FromKeyedServicesAttribute()

來源:
FromKeyedServicesAttribute.cs
來源:
FromKeyedServicesAttribute.cs
來源:
FromKeyedServicesAttribute.cs

建立一個 FromKeyedServicesAttribute 新實例,將 LookupMode 設為 InheritKey。

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

適用於

FromKeyedServicesAttribute(Object)

來源:
FromKeyedServicesAttribute.cs
來源:
FromKeyedServicesAttribute.cs
來源:
FromKeyedServicesAttribute.cs
來源:
FromKeyedServicesAttribute.cs
來源:
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

綁定服務的鑰匙。

適用於