Surface. Get Service(Type) Method
Gets a service from the service container.
public: virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
abstract member GetService : Type -> obj override this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object
The type of service to retrieve.
An object that implements, or is a derived class of,
null if the service does not exist in the service container.
The GetService method retrieves a service in the design surface's service container. In addition, this will forward to any service provider that was given to the design surface at construction time.