ServiceManager.Publish<TServiceType> Method (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.

Publishes the given service. After it is published, the service instance remains in the service manager until the editing context is disposed of.

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

public void Publish<TServiceType>(
	TServiceType serviceInstance
)

Parameters

serviceInstance
Type: TServiceType

An instance of the service.

Type Parameters

TServiceType

The type of the service to publish.

Exception Condition
ArgumentNullException

serviceInstance is null.

.NET Framework
Available since 4.0
Return to top
Show: