ServiceManager.Subscribe<TServiceType> Method (SubscribeServiceCallback<TServiceType>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 void Subscribe<TServiceType>(
	SubscribeServiceCallback<TServiceType> callback
)

Parameters

callback
Type: System.Activities.Presentation.SubscribeServiceCallback<TServiceType>

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

Type Parameters

TServiceType

The type of the service to subscribe to.

Exception Condition
ArgumentNullException

callback is null.

.NET Framework
Available since 4.0
Return to top
Show: