AttributedModelServices.ComposeExportedValue 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.
Creates a part from a specified object and composes it with a specified composition container.
Overloads
ComposeExportedValue<T>(CompositionContainer, T) |
Creates a part from the specified value and composes it in the specified composition container. |
ComposeExportedValue<T>(CompositionContainer, String, T) |
Creates a part from the specified object under the specified contract name and composes it in the specified composition container. |
ComposeExportedValue<T>(CompositionContainer, T)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
Creates a part from the specified value and composes it in the specified composition container.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void ComposeExportedValue(System::ComponentModel::Composition::Hosting::CompositionContainer ^ container, T exportedValue);
public static void ComposeExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionContainer container, T exportedValue);
static member ComposeExportedValue : System.ComponentModel.Composition.Hosting.CompositionContainer * 'T -> unit
<Extension()>
Public Sub ComposeExportedValue(Of T) (container As CompositionContainer, exportedValue As T)
Type Parameters
- T
The type of the new part.
Parameters
- container
- CompositionContainer
The composition container to perform composition in.
- exportedValue
- T
The value to compose.
Applies to
ComposeExportedValue<T>(CompositionContainer, String, T)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
Creates a part from the specified object under the specified contract name and composes it in the specified composition container.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static void ComposeExportedValue(System::ComponentModel::Composition::Hosting::CompositionContainer ^ container, System::String ^ contractName, T exportedValue);
public static void ComposeExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionContainer container, string contractName, T exportedValue);
static member ComposeExportedValue : System.ComponentModel.Composition.Hosting.CompositionContainer * string * 'T -> unit
<Extension()>
Public Sub ComposeExportedValue(Of T) (container As CompositionContainer, contractName As String, exportedValue As T)
Type Parameters
- T
The type of the new part.
Parameters
- container
- CompositionContainer
The composition container to perform composition in.
- contractName
- String
The contract name to export the part under.
- exportedValue
- T
The value to compose.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기