Sdílet prostřednictvím


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

Definice

Získá hodnotu z některého člena části.

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

Parametry

exportingPart
Object

Instance části, ze které se má extrahovat hodnota. Může být null pro statické exporty.

exportingMember
MemberInfo

Člen exportující hodnotu. Může to být null pro export samotného typu nebo instance.

importingSiteElementType
Type

Typ importujícího člena s odstraněnými kolekcemi ImportMany a Lazy/ExportFactory.

exportedValueType
Type

Smluvně exportovaný typ hodnoty.

Návraty

Hodnota člena.

Platí pro