Język

ServiceDescriptor.KeyedImplementationType Właściwość

Definicja

Pobiera element Type implementujący usługę lub zgłasza wartość InvalidOperationException , jeśli IsKeyedService ma wartość 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

Wartość właściwości

Atrybuty

Uwagi

Jeśli IsKeyedService parametr ma falsewartość , ImplementationType należy wywołać zamiast tego.

Dotyczy