IPropertyBase.GetMemberInfo(Boolean, Boolean) Method

Definition

Gets the PropertyInfo or FieldInfo that should be used to get or set a value for the given property.

public virtual System.Reflection.MemberInfo GetMemberInfo (bool forMaterialization, bool forSet);
abstract member GetMemberInfo : bool * bool -> System.Reflection.MemberInfo
override this.GetMemberInfo : bool * bool -> System.Reflection.MemberInfo
Public Overridable Function GetMemberInfo (forMaterialization As Boolean, forSet As Boolean) As MemberInfo

Parameters

forMaterialization
Boolean

If true, then the member to use for query materialization will be returned.

forSet
Boolean

If true, then the member to use for setting the property value will be returned, otherwise the member to use for getting the property value will be returned.

Returns

The MemberInfo to use.

Remarks

Note that it is an error to call this method for a shadow property (IsShadowProperty()) since such a property has no associated MemberInfo.

Applies to