ServiceDescriptor.KeyedImplementationType Proprietà

Definizione

Ottiene l'oggetto Type che implementa il servizio o genera InvalidOperationException un'eccezione se IsKeyedService è 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

Valore della proprietà

Attributi

Commenti

Se IsKeyedService è false, ImplementationType deve essere invece chiamato .

Si applica a