Partager 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

Imports the specified type.

public:
generic <typename T>
 T Import();
public T Import<T> ();
member this.Import : unit -> 'T
Public Function Import(Of T) () As T

Type Parameters

T

The type to import.

Returns

T

The imported instance.

Applies to

Import<T>(Action<ImportConventionBuilder>)

Source:
ParameterImportConventionBuilder.cs
Source:
ParameterImportConventionBuilder.cs

Imports the specified generic type by using the specified configuration.

public:
generic <typename T>
 T Import(Action<System::Composition::Convention::ImportConventionBuilder ^> ^ configure);
public T Import<T> (Action<System.Composition.Convention.ImportConventionBuilder> configure);
member this.Import : Action<System.Composition.Convention.ImportConventionBuilder> -> 'T
Public Function Import(Of T) (configure As Action(Of ImportConventionBuilder)) As T

Type Parameters

T

The type to import.

Parameters

configure
Action<ImportConventionBuilder>

The configuration for the import.

Returns

T

The imported instance.

Applies to