ContainerConfiguration.WithExport Methode

Definitie

Overloads

Name Description
WithExport(Type, Object)

Voeg één exemplaar toe aan de container.

WithExport(Type, Object, String, IDictionary<String,Object>)

Voeg één exemplaar toe aan de container.

WithExport<TExport>(TExport, String, IDictionary<String,Object>)

Voeg één exemplaar toe aan de container.

WithExport<TExport>(TExport)

Voeg één exemplaar toe aan de container.

WithExport(Type, Object)

Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs

Voeg één exemplaar toe aan de container.

public:
 System::Composition::Hosting::ContainerConfiguration ^ WithExport(Type ^ contractType, System::Object ^ exportedInstance);
public System.Composition.Hosting.ContainerConfiguration WithExport(Type contractType, object exportedInstance);
member this.WithExport : Type * obj -> System.Composition.Hosting.ContainerConfiguration
Public Function WithExport (contractType As Type, exportedInstance As Object) As ContainerConfiguration

Parameters

contractType
Type

Het type contract van het exemplaar.

exportedInstance
Object

Het exemplaar dat moet worden toegevoegd aan de container.

Retouren

Een configuratieobject dat de configuratie toestaat om door te gaan.

Van toepassing op

WithExport(Type, Object, String, IDictionary<String,Object>)

Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs

Voeg één exemplaar toe aan de container.

public System.Composition.Hosting.ContainerConfiguration WithExport(Type contractType, object exportedInstance, string contractName = default, System.Collections.Generic.IDictionary<string,object> metadata = default);
member this.WithExport : Type * obj * string * System.Collections.Generic.IDictionary<string, obj> -> System.Composition.Hosting.ContainerConfiguration
Public Function WithExport (contractType As Type, exportedInstance As Object, Optional contractName As String = Nothing, Optional metadata As IDictionary(Of String, Object) = Nothing) As ContainerConfiguration

Parameters

contractType
Type

Het type contract van het exemplaar.

exportedInstance
Object

Het exemplaar dat moet worden toegevoegd aan de container.

contractName
String

Een optionele naam die dit contract onderscheidt van anderen met hetzelfde type.

metadata
IDictionary<String,Object>

Eventueel een niet-lege verzameling benoemde beperkingen die van toepassing zijn op het contract.

Retouren

Een configuratieobject dat de configuratie toestaat om door te gaan.

Van toepassing op

WithExport<TExport>(TExport, String, IDictionary<String,Object>)

Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs

Voeg één exemplaar toe aan de container.

public System.Composition.Hosting.ContainerConfiguration WithExport<TExport>(TExport exportedInstance, string contractName = default, System.Collections.Generic.IDictionary<string,object> metadata = default);
member this.WithExport : 'Export * string * System.Collections.Generic.IDictionary<string, obj> -> System.Composition.Hosting.ContainerConfiguration
Public Function WithExport(Of TExport) (exportedInstance As TExport, Optional contractName As String = Nothing, Optional metadata As IDictionary(Of String, Object) = Nothing) As ContainerConfiguration

Type parameters

TExport

Het type contract van het exemplaar.

Parameters

exportedInstance
TExport

Het exemplaar dat moet worden toegevoegd aan de container.

contractName
String

Optioneel een naam die dit contract onderscheidt van anderen met hetzelfde type.

metadata
IDictionary<String,Object>

Eventueel een niet-lege verzameling benoemde beperkingen die van toepassing zijn op het contract.

Retouren

Een configuratieobject dat de configuratie toestaat om door te gaan.

Van toepassing op

WithExport<TExport>(TExport)

Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs
Bron:
ContainerConfiguration.cs

Voeg één exemplaar toe aan de container.

public:
generic <typename TExport>
 System::Composition::Hosting::ContainerConfiguration ^ WithExport(TExport exportedInstance);
public System.Composition.Hosting.ContainerConfiguration WithExport<TExport>(TExport exportedInstance);
member this.WithExport : 'Export -> System.Composition.Hosting.ContainerConfiguration
Public Function WithExport(Of TExport) (exportedInstance As TExport) As ContainerConfiguration

Type parameters

TExport

Het type contract van het exemplaar.

Parameters

exportedInstance
TExport

Het exemplaar dat moet worden toegevoegd aan de container.

Retouren

Een configuratieobject dat de configuratie toestaat om door te gaan.

Van toepassing op