共用方式為


ServiceDescriptor.KeyedImplementationFactory 屬性

定義

取得用於建立索引鍵服務實例的處理站,如果 IsKeyedServicefalse,則擲回 InvalidOperationException

public:
 property Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ KeyedImplementationFactory { Func<IServiceProvider ^, System::Object ^, System::Object ^> ^ get(); };
public Func<IServiceProvider,object?,object>? KeyedImplementationFactory { get; }
member this.KeyedImplementationFactory : Func<IServiceProvider, obj, obj>
Public ReadOnly Property KeyedImplementationFactory As Func(Of IServiceProvider, Object, Object)

屬性值

備註

如果 IsKeyedServicefalse,則應該改為呼叫 ImplementationFactory

適用於