CompositionHost.TryGetExport(CompositionContract, Object) 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.
Retrieves the specified export from the composition context.
public:
override bool TryGetExport(System::Composition::Hosting::Core::CompositionContract ^ contract, [Runtime::InteropServices::Out] System::Object ^ % export);
public override bool TryGetExport (System.Composition.Hosting.Core.CompositionContract contract, out object export);
override this.TryGetExport : System.Composition.Hosting.Core.CompositionContract * obj -> bool
Public Overrides Function TryGetExport (contract As CompositionContract, ByRef export As Object) As Boolean
Parameters
- contract
- CompositionContract
The export to retrieve.
- export
- Object
When this method returns, contains an instance of the export if available; otherwise, null
.
Returns
true
if the export was retrieved; otherwise, false
.
Exceptions
There are too many exports.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.