EventSubscriptionAttribute Constructor (String, ThreadOption)

Delcares a method as an EventTopic subscription using the specified ThreadOption.

Namespace: Microsoft.Practices.CompositeUI.EventBroker
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Sub New ( _
    topic As String, _
    threadOption As ThreadOption _
)
'Usage
Dim topic As String
Dim threadOption As ThreadOption

Dim instance As New EventSubscriptionAttribute(topic, threadOption)
public EventSubscriptionAttribute (
    string topic,
    ThreadOption threadOption
)
public:
EventSubscriptionAttribute (
    String^ topic, 
    ThreadOption threadOption
)
public EventSubscriptionAttribute (
    String topic, 
    ThreadOption threadOption
)
public function EventSubscriptionAttribute (
    topic : String, 
    threadOption : ThreadOption
)

Parameters

  • topic
    The name of the EventTopic to subscribe to.
  • threadOption
    The ThreadOption indicating how the method should be called.

See Also

Reference

EventSubscriptionAttribute Class
EventSubscriptionAttribute Members
Microsoft.Practices.CompositeUI.EventBroker Namespace