Diagram.GetService(Type) Method

Definition

Gets the requested service by first querying the store, and if not found, then querying the diagram's ActiveDiagramView. The DiagramView will need to have been sited in order for this method to perform the query on the view. If the query fails, a null value is returned.

public:
 System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
member this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

Parameters

serviceType
Type

Returns

The requested service or null (Nothing) if the query fails.

Applies to