ParameterImportConventionBuilder.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.
Overloads
Import<T>() |
Imports the specified type. |
Import<T>(Action<ImportConventionBuilder>) |
Imports the specified generic type by using the specified configuration. |
Import<T>()
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>)
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.