Creates a new instance of the
RelationAttribute Class.
Syntax
| Visual Basic (Usage) | Copy Code |
|---|
Dim parentMember As String
Dim childMember As String
Dim instance As RelationAttribute(parentMember, 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
| Exception | Description |
| ArgumentNullException | ParentMember is null or childMember is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also