语言

ServiceDescriptor.KeyedImplementationType 属性

定义

获取 Type 实现服务或引发 InvalidOperationException (如果 IsKeyedService 为 false)。

public:
 property Type ^ KeyedImplementationType { Type ^ get(); };
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type? KeyedImplementationType { get; }
public Type? KeyedImplementationType { get; }
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)>]
member this.KeyedImplementationType : Type
member this.KeyedImplementationType : Type
Public ReadOnly Property KeyedImplementationType As Type

属性值

特性

注解

false如果是IsKeyedService,ImplementationType则应改为调用。

适用于