Breyta

Deila með


DesignSurface.GetService(Type) Method

Definition

Gets a service from the service container.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public 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

Parameters

serviceType
Type

The type of service to retrieve.

Returns

An object that implements, or is a derived class of, serviceType, or null if the service does not exist in the service container.

Implements

Remarks

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.

Applies to