Upravit

Sdílet prostřednictvím


IMessenger.IsRegistered<TMessage,TToken>(Object, TToken) Method

Definition

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>)
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.

Applies to