FromKeyedServicesAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| FromKeyedServicesAttribute() |
建立一個 FromKeyedServicesAttribute 新實例,將 LookupMode 設為 InheritKey。 |
| FromKeyedServicesAttribute(Object) |
建立新的 FromKeyedServicesAttribute 實例。 |
FromKeyedServicesAttribute()
建立一個 FromKeyedServicesAttribute 新實例,將 LookupMode 設為 InheritKey。
public:
FromKeyedServicesAttribute();
public FromKeyedServicesAttribute();
Public Sub New ()
適用於
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
綁定服務的鑰匙。