ServiceDescriptor.KeyedImplementationType Eigenschap

Definitie

Hiermee haalt u de Type service op of gooit InvalidOperationException deze als IsKeyedService dat het is 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

Waarde van eigenschap

Kenmerken

Opmerkingen

Als IsKeyedService dat het geval is false, ImplementationType moet u in plaats daarvan worden aangeroepen.

Van toepassing op