ServiceDescriptor.KeyedImplementationType Property

Definition

Gets the Type that implements the service, or throws InvalidOperationException if IsKeyedService 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

Property Value

Attributes

Remarks

If IsKeyedService is false, ImplementationType should be called instead.

Applies to