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

要系結至之索引鍵服務的索引鍵。

適用於