Subscribes the receiver to receive the specified notification messages from the given sender type.
The receiver must implement the INotificationReciever interface.
| C# | Visual Basic | Visual C++ |
public static void Subscribe( Object receiver, Type senderType, IEnumerable<byte> messageIds )
Public Shared Sub Subscribe ( _ receiver As Object, _ senderType As Type, _ messageIds As IEnumerable(Of Byte) _ )
public: static void Subscribe( Object^ receiver, Type^ senderType, IEnumerable<unsigned char>^ messageIds )
- receiver (Object)
- The receiver object instance
- senderType (Type)
- The sender type the receiver wants to subscribe to
- messageIds (IEnumerable<(Of <(Byte>)>))
- The messageIds the receiver wants to be subscribed for
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if the receiver or the senderType is null. |