Share via


IUnityContainer.Configure Method

Resolve access to a configuration interface exposed by an extension.

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

Syntax

'Declaration
Function Configure ( _
    configurationInterface As Type _
) As Object
Object Configure(
    Type configurationInterface
)
Object^ Configure(
    Type^ configurationInterface
)
function Configure(
    configurationInterface : Type
) : Object

Parameters

  • configurationInterface
    Type: System.Type
    Type of configuration interface required.

Return Value

The requested extension's configuration interface, or null if not found.

Remarks

Extensions can expose configuration interfaces as well as adding strategies and policies to the container. This method walks the list of added extensions and returns the first one that implements the requested type.

See Also

IUnityContainer Interface

Microsoft.Practices.Unity Namespace