IMessageBus.IsRegistered(Type) method¶
Defined in
Type: IMessageBus
Namespace: ReactiveUI
Assembly: ReactiveUI.dll
Applies to
net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-macos26.0, net9.0, net8.0, net481, net462
Overloads¶
-
bool IsRegistered(Type type) -
bool IsRegistered(Type type, string? contract)
1. Overload¶
bool IsRegistered(Type type)
Summary: Determines if a particular message Type is registered.
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | The type of the message. |
Returns: bool -- True if messages have been posted for this message Type.
2. Overload¶
bool IsRegistered(Type type, string? contract)
Summary: Determines if a particular message Type is registered.
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | The type of the message. |
contract | string? | A unique string to distinguish messages with identical types (i.e. "MyCoolViewModel") - if the message type is only used for one purpose, leave this as null. |
Returns: bool -- True if messages have been posted for this message Type.