Прочитать на английском Изменить

Поделиться через


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 T Import<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

.NET 10 (package-provided) и другие версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.1 (package-provided)

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 T Import<T>(Action<System.ComponentModel.Composition.Registration.ImportBuilder> configure);

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

.NET 10 (package-provided) и другие версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.1 (package-provided)