ServiceManager.Publish<TServiceType> Method (TServiceType)

.NET Framework (current version)
 

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: