ServiceManager.GetService Method (Type)

.NET Framework (current version)
 

Retrieves the requested service. This method returns null if the service could not be located.

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

public abstract object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service to retrieve.

Return Value

Type: System.Object

Returns Object, which is an instance of the service, or null if the service has not been published.

Exception Condition
ArgumentNullException

serviceType is null.

.NET Framework
Available since 4.0
Return to top
Show: