WeakReferenceMessenger.IsRegistered<TMessage,TToken> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks whether or not a given recipient has already been registered for a message.
public bool IsRegistered<TMessage,TToken> (object recipient, TToken token) where TMessage : class where TToken : IEquatable<TToken>;
abstract member IsRegistered : obj * 'oken -> bool (requires 'Message : null and 'oken :> IEquatable<'oken>)
override this.IsRegistered : obj * 'oken -> bool (requires 'Message : null and 'oken :> IEquatable<'oken>)
Public Function IsRegistered(Of TMessage As Class, TToken As Class) (recipient As Object, token As TToken) As Boolean
Type Parameters
- TMessage
The type of message to check for the given recipient.
- TToken
The type of token to check the channel for.
Parameters
- recipient
- Object
The target recipient to check the registration for.
- token
- TToken
The token used to identify the target channel to check.
Returns
Whether or not recipient
has already been registered for the specified message.