Share via


ServiceKeyLookupMode Enum

Definition

Specifies how to look up the service key for a parameter.

public enum class ServiceKeyLookupMode
public enum ServiceKeyLookupMode
type ServiceKeyLookupMode = 
Public Enum ServiceKeyLookupMode
Inheritance
ServiceKeyLookupMode

Fields

Name Value Description
InheritKey 0

The key is inherited from the parent service.

NullKey 1

A null key indicates that the parameter should be resolved from unkeyed services. This is useful for DI implementations that require an explicit way to declare that the parameter should be resolved from unkeyed services.

ExplicitKey 2

The key is explicitly specified.

Applies to