Share via


ExportProvider.GetValueFromMember(Object, MemberInfo, Type, Type) Method

Definition

Gets the value from some member of a part.

protected static object GetValueFromMember (object exportingPart, System.Reflection.MemberInfo exportingMember, Type importingSiteElementType = default, Type exportedValueType = default);
static member GetValueFromMember : obj * System.Reflection.MemberInfo * Type * Type -> obj
Protected Shared Function GetValueFromMember (exportingPart As Object, exportingMember As MemberInfo, Optional importingSiteElementType As Type = Nothing, Optional exportedValueType As Type = Nothing) As Object

Parameters

exportingPart
Object

The instance of the part to extract the value from. May be null for static exports.

exportingMember
MemberInfo

The member exporting the value. May be null for exporting the type/instance itself.

importingSiteElementType
Type

The type of the importing member, with ImportMany collections and Lazy/ExportFactory stripped away.

exportedValueType
Type

The contractually exported value type.

Returns

The value of the member.

Applies to