EventTopic.ContainsSubscription Method
Checks if the specified subscription has been registered with this EventTopic.
Namespace: Microsoft.Practices.CompositeUI.EventBroker
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)
Syntax
'Declaration
Public Overridable Function ContainsSubscription ( _
subscriber As Object, _
handlerMethodName As String _
) As Boolean
'Usage
Dim instance As EventTopic
Dim subscriber As Object
Dim handlerMethodName As String
Dim returnValue As Boolean
returnValue = instance.ContainsSubscription(subscriber, handlerMethodName)
public virtual bool ContainsSubscription (
Object subscriber,
string handlerMethodName
)
public:
virtual bool ContainsSubscription (
Object^ subscriber,
String^ handlerMethodName
)
public boolean ContainsSubscription (
Object subscriber,
String handlerMethodName
)
public function ContainsSubscription (
subscriber : Object,
handlerMethodName : String
) : boolean
Parameters
- subscriber
The object that contains the method that will handle the EventTopic.
- handlerMethodName
The name of the method on the subscriber that will handle the EventTopic.
Return Value
true, if the topic contains the subscription; otherwise false.
See Also
Reference
EventTopic Class
EventTopic Members
Microsoft.Practices.CompositeUI.EventBroker Namespace