| ServiceLocatorSetLocatorProvider Method |
Set the delegate that is used to retrieve the current container.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax public static void SetLocatorProvider(
ServiceLocatorProvider newProvider
)
Public Shared Sub SetLocatorProvider (
newProvider As ServiceLocatorProvider
)
public:
static void SetLocatorProvider(
ServiceLocatorProvider^ newProvider
)
static member SetLocatorProvider :
newProvider : ServiceLocatorProvider -> unit
Parameters
- newProvider
- Type: Microsoft.Practices.ServiceLocationServiceLocatorProvider
Delegate that, when called, will return
the current ambient container.
See Also