Lenguaje

IServiceProvider Interfaz

Definición

Proporciona acceso a un servicio identificado por un identificador único global (GUID). Para obtener más información, consulte IServiceProvider.

public interface class IServiceProvider
public interface class IServiceProvider
__interface IServiceProvider
[System.Runtime.InteropServices.Guid("6D5140C1-7436-11CE-8034-00AA006009FA")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IServiceProvider
[System.Runtime.InteropServices.Guid("6D5140C1-7436-11CE-8034-00AA006009FA")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IServiceProvider
[<System.Runtime.InteropServices.Guid("6D5140C1-7436-11CE-8034-00AA006009FA")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IServiceProvider = interface
[<System.Runtime.InteropServices.Guid("6D5140C1-7436-11CE-8034-00AA006009FA")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IServiceProvider = interface
Public Interface IServiceProvider
Derivado
Atributos

Métodos

Nombre Description
QueryService(Guid, Guid, IntPtr)

Proporciona acceso a un servicio identificado por un identificador único global (GUID). Para obtener más información, consulte IServiceProvider.

Métodos de extensión

Nombre Description
QueryService(IServiceProvider, Guid)

Obtiene un servicio expuesto por un proveedor de servicios en función de su GUID de servicio.

QueryService<TService>(IServiceProvider)

Obtiene un servicio expuesto por un proveedor de servicios en función de su tipo de servicio.

Se aplica a