Unsubscribes the receiver from getting messages with the specified messageIds from the specified senderType
| C# | Visual Basic | Visual C++ |
public static bool Unsubscribe( Object receiver, Type senderType, IEnumerable<byte> messageIds )
Public Shared Function Unsubscribe ( _ receiver As Object, _ senderType As Type, _ messageIds As IEnumerable(Of Byte) _ ) As Boolean
public: static bool Unsubscribe( Object^ receiver, Type^ senderType, IEnumerable<unsigned char>^ messageIds )
- receiver (Object)
- The receiver object instance
- senderType (Type)
- The sender type the receiver wants to unsubscribe from
- messageIds (IEnumerable<(Of <(Byte>)>))
- The messageIds the receiver wants to unsubscribe from
If the receiver has been subscribed to any of the specified messageIds and senderType the function returns true. Otherwise it returns false.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if the receiver or the senderType is null. |
| ArgumentException | Thrown if the receiver is not INotificationReceiver. |