EventTopic.ContainsPublication Method
Checks if the specified publication 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 ContainsPublication ( _
publisher As Object, _
eventName As String _
) As Boolean
'Usage
Dim instance As EventTopic
Dim publisher As Object
Dim eventName As String
Dim returnValue As Boolean
returnValue = instance.ContainsPublication(publisher, eventName)
public virtual bool ContainsPublication (
Object publisher,
string eventName
)
public:
virtual bool ContainsPublication (
Object^ publisher,
String^ eventName
)
public boolean ContainsPublication (
Object publisher,
String eventName
)
public function ContainsPublication (
publisher : Object,
eventName : String
) : boolean
Parameters
- publisher
The object that contains the publication.
- eventName
The name of event on the publisher that fires the topic.
Return Value
true if the topic contains the requested publication; otherwise false.
See Also
Reference
EventTopic Class
EventTopic Members
Microsoft.Practices.CompositeUI.EventBroker Namespace