ExportFactory<T,TMetadata> Class
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.
A factory that creates new instances of a part that provides the specified export, with attached metadata.
generic <typename T, typename TMetadata>
public ref class ExportFactory : System::ComponentModel::Composition::ExportFactory<T>
public class ExportFactory<T,TMetadata> : System.ComponentModel.Composition.ExportFactory<T>
type ExportFactory<'T, 'Metadata> = class
inherit ExportFactory<'T>
Public Class ExportFactory(Of T, TMetadata)
Inherits ExportFactory(Of T)
- T
The type of the created part.
- TMetadata
The type of the created part's metadata.
- Inheritance
ExportFactory<T,TMetadata> extends ExportFactory<T> to include a metadata object, in much the same way that Lazy<T,TMetadata> extends Lazy<T>. For more information, see ExportFactory<T> and Lazy<T>.
Export |
Initializes a new instance of the ExportFactory<T,TMetadata> class. |
Metadata |
Gets the metadata to be attached to the created parts. |
Create |
Creates an instance of the factory's export type. (Inherited from ExportFactory<T>) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.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.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: