Diagram::GetService Method (Type^)

 

Gets a service.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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.

Return to top
Show: