A ChildRelationship object is returned from the sObject describe result using the getChildRelationship method. For example:
Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe(); List<Schema.ChildRelationship> C = R.getChildRelationships();
The following are methods for ChildRelationship. All are instance methods.
public Schema.SObjectType getChildSObject()
Type: Schema.SObjectType
public Schema.SObjectField getField()
Type: Schema.SObjectField
public String getRelationshipName()
Type: String
public Boolean isCascadeDelete()
Type: Boolean
public Boolean isDeprecatedAndHidden()
Type: Boolean
public Boolean isRestrictedDelete()
Type: Boolean