Bahasa

ServiceDescriptor.KeyedImplementationInstance Properti

Definisi

Mendapatkan instans yang mengimplementasikan layanan, atau melempar InvalidOperationException jika IsKeyedService adalah false.

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

Nilai Properti

Keterangan

Jika IsKeyedService adalah false, ImplementationInstance harus dipanggil sebagai gantinya.

Berlaku untuk