In addition to self-defence, the Criminal Code also contains section 35, which addresses your legal right to defend your property.
In order to avail yourself of this right, the court must find the following criteria to be present:
You believe on reasonable grounds that you are in 'peaceable possession' of property, or you are acting under the authority of, or lawfully assisting, a person who is in peaceable possession of the property;
Another person is or is about to enter the property without being entitled to do so, has taken the property, or has damaged or destroyed the property;
There was a defensive purpose associated with your actions; and
The act you committed was reasonable in the circumstances.
There are certain circumstances where this defence will not apply to you. For example, you can not take advantage of the defence if you do not have a claim to the property and the other person in the altercation is entitled to its possession by law. You also cannot claim this right if the other person is doing something required or authorized by law in the administration or enforcement of law, unless certain conditions apply.
Unlike the test for self-defence, there are no specified list of factors that a court must consider when assessing whether your conduct was reasonable in the circumstances. Each situation is still assessed by the court on a case-by-case basis.