Export (0) Print
Expand All

UnityContainerExtensions.Resolve<T> Method (IUnityContainer, ResolverOverride[])

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

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

public static T Resolve<T>(
	this IUnityContainer container,
	params ResolverOverride[] overrides
)

Parameters

container
Type: Microsoft.Practices.Unity.IUnityContainer
Container to resolve from.
overrides
Type: Microsoft.Practices.Unity.ResolverOverride []
Any overrides for the resolve call.

T
Type of object to get from the container.

Return Value

The retrieved object.
Show:
© 2015 Microsoft