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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET