Export (0) Print
Expand All

ServiceManager.Publish<TServiceType> Method (TServiceType)

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
)

Type Parameters

TServiceType

The type of the service to publish.

Parameters

serviceInstance
Type: TServiceType

An instance of the service.

ExceptionCondition
ArgumentNullException

serviceInstance is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft