UnityContainerExtensions.Resolve Method

Resolve an instance of the default requested type from the container.

Namespace: Microsoft.Practices.Unity
Assembly: Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Resolve ( _
    container As IUnityContainer, _
    t As Type, _
    ParamArray overrides As ResolverOverride() _
) As Object
public static Object Resolve(
    this IUnityContainer container,
    Type t,
    params ResolverOverride[] overrides
)
[ExtensionAttribute]
public:
static Object^ Resolve(
    IUnityContainer^ container, 
    Type^ t, 
    ... array<ResolverOverride^>^ overrides
)
public static function Resolve(
    container : IUnityContainer, 
    t : Type, 
    ... overrides : ResolverOverride[]
) : Object

Parameters

Return Value

The retrieved object.

See Also

UnityContainerExtensions Class

Microsoft.Practices.Unity Namespace