ContainerConfiguration.WithDefaultConventions(AttributedModelProvider) Method

Definition

Specifies the default conventions to use for added parts.

C#
public System.Composition.Hosting.ContainerConfiguration WithDefaultConventions(System.Composition.Convention.AttributedModelProvider conventions);

Parameters

conventions
AttributedModelProvider

The conventions to use for part types.

Returns

An object that can be used to further configure the container.

Applies to

Product Versions
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)