ParameterImportBuilder.Import Method

Definition

Defines a parameter as an imported parameter.

Overloads

Import<T>()

Defines the specified parameter as an imported parameter.

Import<T>(Action<ImportBuilder>)

Defines the specified parameter as an imported parameter that has the specified configuration.

Import<T>()

Source:
ParameterImportBuilder.cs
Source:
ParameterImportBuilder.cs
Source:
ParameterImportBuilder.cs

Defines the specified parameter as an imported parameter.

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 of the parameter to define.

Returns

T

Default of T, but this method should only be referenced and never invoked.

Applies to

Import<T>(Action<ImportBuilder>)

Source:
ParameterImportBuilder.cs
Source:
ParameterImportBuilder.cs
Source:
ParameterImportBuilder.cs

Defines the specified parameter as an imported parameter that has the specified configuration.

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

Type Parameters

T

The type of the parameter to define.

Parameters

configure
Action<ImportBuilder>

An object that contains configuration information for the imported parameter.

Returns

T

Default of T, but this method should only be referenced and never invoked.

Exceptions

configure is null.

Applies to