Partilhar via


ServiceProvider.GetServiceImpl Method

Definition

Overloads

GetServiceImpl(Guid)

Provides the implementation for retrieving a service with a specific GUID.

GetServiceImpl(Type)

Provides the implementation for retrieving a service of a specific type.

GetServiceImpl(Guid)

Provides the implementation for retrieving a service with a specific GUID.

protected:
 virtual System::Object ^ GetServiceImpl(Guid serviceGuid);
protected virtual object GetServiceImpl (Guid serviceGuid);
abstract member GetServiceImpl : Guid -> obj
override this.GetServiceImpl : Guid -> obj
Protected Overridable Function GetServiceImpl (serviceGuid As Guid) As Object

Parameters

serviceGuid
Guid

The GUID of a service.

Returns

Returns the service with a specified service GUID, or returns null if no service was found.

Applies to

GetServiceImpl(Type)

Provides the implementation for retrieving a service of a specific type.

protected:
 virtual System::Object ^ GetServiceImpl(Type ^ serviceType);
protected virtual object GetServiceImpl (Type serviceType);
abstract member GetServiceImpl : Type -> obj
override this.GetServiceImpl : Type -> obj
Protected Overridable Function GetServiceImpl (serviceType As Type) As Object

Parameters

serviceType
Type

A service type.

Returns

Returns the service of the specified type, or returns null if no service was found.

Applies to