語言

ServiceDescriptor.ImplementationType 屬性

定義

取得Type實作該服務的 ,或若 IsKeyedService 是 true則返回 null 。

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

屬性值

屬性

備註

若 IsKeyedService 是trueKeyedImplementationType,則應改為 。

適用於