Freigeben über


Export.GetExportedValueCore Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the exported object the export provides.

Namespace:  System.ComponentModel.Composition.Primitives
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

Syntax

'Declaration
Protected Overridable Function GetExportedValueCore As Object
protected virtual Object GetExportedValueCore()

Return Value

Type: System.Object
The exported object the export provides.

Exceptions

Exception Condition
NotImplementedException

The GetExportedValueCore method was not overridden by a derived class.

CompositionContractMismatchException

The current instance is an instance of Export<T> and the underlying exported object cannot be cast to T.

CompositionException

An error occurred during composition. Errors will contain a collection of errors that occurred.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.