Diagram.GetService(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.