This topic has not yet been rated - Rate this topic

Diagram.GetService Method

Gets a service.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type
The type of service to retrieve.

Return Value

Type: System.Object
The service; if no service is found, null.

To get the service, this method queries the store. If no service is found in the store and the diagram has an active diagram view, the active diagram view is queried.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ