ExportProvider.GetValueFromMember(Object, MemberInfo, Type, Type) 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.
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.