Share via


ParameterImportConventionBuilder.Import Method

Definition

Overloads

Import<T>()

Imports the specified type.

Import<T>(Action<ImportConventionBuilder>)

Imports the specified generic type by using the specified configuration.

Import<T>()

Source:
ParameterImportConventionBuilder.cs
Source:
ParameterImportConventionBuilder.cs
Source:
ParameterImportConventionBuilder.cs

Imports the specified type.

public T Import<T>();

Type Parameters

T

The type to import.

Returns

T

The imported instance.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

Import<T>(Action<ImportConventionBuilder>)

Source:
ParameterImportConventionBuilder.cs
Source:
ParameterImportConventionBuilder.cs
Source:
ParameterImportConventionBuilder.cs

Imports the specified generic type by using the specified configuration.

public T Import<T>(Action<System.Composition.Convention.ImportConventionBuilder> configure);

Type Parameters

T

The type to import.

Parameters

configure
Action<ImportConventionBuilder>

The configuration for the import.

Returns

T

The imported instance.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)