ServiceDescriptor.KeyedImplementationInstance 属性

定义

获取实现服务的实例,或者如果为 IsKeyedServicefalse,则引发 InvalidOperationException

public:
 property System::Object ^ KeyedImplementationInstance { System::Object ^ get(); };
public object? KeyedImplementationInstance { get; }
member this.KeyedImplementationInstance : obj
Public ReadOnly Property KeyedImplementationInstance As Object

属性值

注解

false如果是IsKeyedServiceImplementationInstance则应改为调用。

适用于