| ServiceLocatorImplBaseDoGetInstance Method |
When implemented by inheriting classes, this method will do the actual work of resolving
the requested service instance.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax protected abstract Object DoGetInstance(
Type serviceType,
string key
)
Protected MustOverride Function DoGetInstance (
serviceType As Type,
key As String
) As Object
protected:
virtual Object^ DoGetInstance(
Type^ serviceType,
String^ key
) abstract
abstract DoGetInstance :
serviceType : Type *
key : string -> Object
Parameters
- serviceType
- Type: SystemType
Type of instance requested. - key
- Type: SystemString
Name of registered service you want. May be null.
Return Value
Type:
ObjectThe requested service instance.
See Also