Chili.Opf3 Send comments on this topic.
RelationAttribute Constructor(String,String)
See Also 
Chili.Opf3.Relations Namespace > RelationAttribute Class > RelationAttribute Constructor : RelationAttribute Constructor(String,String)




parentMember
Specifies the name of the parent object member. The parent object member is usually a property or field in the parent object.
childMember
Specifies the name of the child object member. The child object member is usually a property or field in the child object. The field of the object member should be marked as foreign key in the storage.
Creates a new instance of the RelationAttribute Class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal parentMember As String, _
   ByVal childMember As String _
)
Visual Basic (Usage)Copy Code
Dim parentMember As String
Dim childMember As String
 
Dim instance As RelationAttribute(parentMember, childMember)
C# 
public RelationAttribute( 
   string parentMember,
   string childMember
)
Managed Extensions for C++ 
public: RelationAttribute( 
   string* parentMember,
   string* childMember
)
C++/CLI 
public:
RelationAttribute( 
   String^ parentMember,
   String^ childMember
)

Parameters

parentMember
Specifies the name of the parent object member. The parent object member is usually a property or field in the parent object.
childMember
Specifies the name of the child object member. The child object member is usually a property or field in the child object. The field of the object member should be marked as foreign key in the storage.

Exceptions

ExceptionDescription
ArgumentNullExceptionParentMember is null or childMember is null.

Requirements

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

See Also