public void AddPropertyTypeToPropertySet(PropertyType propertyType, PropertySet owner)
{
if (propertyType == null)
{
throw new ArgumentNullException("propertyType");
}
if (owner == null)
{
throw new ArgumentNullException("owner");
}
if (propertyType.SchemaRoot != this)
{
throw new InvalidSchemaException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);
}
if (owner.SchemaRoot != this)
{
throw new InvalidSchemaException(SR.Exceptions.Schema.Msg_InconsistentHierarchy);
}
owner.AddPropertyType(propertyType);
}