ServiceManager.Subscribe Method (Type, SubscribeServiceCallback)

.NET Framework (current version)
 

Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.

Namespace:   System.Activities.Presentation
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract void Subscribe(
	Type serviceType,
	SubscribeServiceCallback callback
)

Parameters

serviceType
Type: System.Type

The type of service to subscribe to.

callback
Type: System.Activities.Presentation.SubscribeServiceCallback

A callback that will be notified when the service is available.

Exception Condition
ArgumentNullException

serviceType or callback is null.

.NET Framework
Available since 4.0
Return to top
Show: