ConfigurationExtensionsGetParameters Method |
Converts configured parameter values into parameters that can be used
during object resolution.
Namespace:
Autofac.Configuration.Core
Assembly:
Autofac.Configuration (in Autofac.Configuration.dll) Version: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
Syntax public static IEnumerable<Parameter> GetParameters(
this IConfiguration configuration,
string key
)
<ExtensionAttribute>
Public Shared Function GetParameters (
configuration As IConfiguration,
key As String
) As IEnumerable(Of Parameter)
Parameters
- configuration
- Type: IConfiguration
The IConfiguration element that contains the component
with defined parameters.
- key
- Type: SystemString
The String key indicating the sub-element with the
parameters. Usually this is parameters.
Return Value
Type:
IEnumerableParameter
An
IEnumerableT of
Parameter values
that can be used during object resolution.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IConfiguration. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also