Chili.Opf3 Send comments on this topic.
GetMemberRelationAttribute Method
See Also 
Chili.Opf3.Mapping.Providers Namespace > ITypeMappingProvider Interface : GetMemberRelationAttribute Method




type
The persistent type that's mapping is created.
member
The member of the persistent type.
relatedType
The related object's type.
Returns the RelationAttribute for the given member. If the member does not have an attribute set, null is returned.

Syntax

Visual Basic (Declaration) 
Overridable Function GetMemberRelationAttribute( _
   ByVal type As Type, _
   ByVal member As MemberInfo, _
   ByVal relatedType As Type _
) As RelationAttribute
Visual Basic (Usage)Copy Code
Dim instance As ITypeMappingProvider
Dim type As Type
Dim member As MemberInfo
Dim relatedType As Type
Dim value As RelationAttribute
 
value = instance.GetMemberRelationAttribute(type, member, relatedType)
C# 
virtual RelationAttribute GetMemberRelationAttribute( 
   Type type,
   MemberInfo member,
   Type relatedType
)
Managed Extensions for C++ 
virtual RelationAttribute* GetMemberRelationAttribute( 
   Type* type,
   MemberInfo* member,
   Type* relatedType
) 
C++/CLI 
virtual RelationAttribute^ GetMemberRelationAttribute( 
   Type^ type,
   MemberInfo^ member,
   Type^ relatedType
) 

Parameters

type
The persistent type that's mapping is created.
member
The member of the persistent type.
relatedType
The related object's type.

Return Value

An instance of the RelationAttribute or null if the member does not have an attribute set.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also