Unsubscribes the receiver from getting any notification messages. This method can only be called
from within a code in the same type as the passed receiver object type. If it is called from somewhere else
an InvalidOperationException will be thrown.
- receiver (Object)
- The receiver object instance
If the receiver has been subscribed to any messages the function returns true. Otherwise it returns false.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if the receiver is null. |
| InvalidOperationException | Thrown if the type of the receiver doesn't match the type of the object making the call. |