ServiceManager.Publish Method (Type, Object)
.NET Framework 4.6 and 4.5
Publishes the given service. After it is published, the service instance remains in the service manager until the editing context is disposed of.
System.Activities.Presentation (in System.Activities.Presentation.dll)
public abstract void Publish(
The type of service to publish.
An instance of the service.
serviceType or serviceInstance is null.
serviceInstance does not derive from or implement serviceType, or serviceType has already been published.
Return to top
Available since 4.0