语言

ServiceDescriptor.ImplementationType 属性

定义

获取Type实现服务或返回 null if is 的IsKeyedServicetrue项。

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

属性值

特性

注解

true如果是IsKeyedService,KeyedImplementationType则应改为调用。

适用于