ParameterImportBuilder.Import Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
Default of T
, but this method should only be referenced and never invoked.
Exceptions
configure
is null
.