Bahasa

ServiceDescriptor.KeyedImplementationType Properti

Definisi

Type Mendapatkan yang mengimplementasikan layanan, atau melempar InvalidOperationException jika IsKeyedService adalah 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

Nilai Properti

Atribut

Keterangan

Jika IsKeyedService adalah false, ImplementationType harus dipanggil sebagai gantinya.

Berlaku untuk