AttributedModelServices.ComposeExportedValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定物件建立一個零件,並以指定的組合容器組合。
多載
| 名稱 | Description |
|---|---|
| ComposeExportedValue<T>(CompositionContainer, T) |
從指定的值建立一個零件,並將其組合到指定的組合容器中。 |
| ComposeExportedValue<T>(CompositionContainer, String, T) |
從指定的物件中建立一個部分,並以指定的合約名稱進行,並將其組合在指定的組合容器中。 |
ComposeExportedValue<T>(CompositionContainer, T)
從指定的值建立一個零件,並將其組合到指定的組合容器中。
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)
類型參數
- T
新零件的類型。
參數
- container
- CompositionContainer
用於作文的容器。
- exportedValue
- T
作曲的價值。
適用於
ComposeExportedValue<T>(CompositionContainer, String, T)
從指定的物件中建立一個部分,並以指定的合約名稱進行,並將其組合在指定的組合容器中。
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)
類型參數
- T
新零件的類型。
參數
- container
- CompositionContainer
用於作文的容器。
- contractName
- String
出口零件的合約名稱。
- exportedValue
- T
作曲的價值。