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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.