IServiceProvider Interface

Definition

Provides access to a service identified by a globally unique identifier (GUID). For more information, see 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
Derived
Attributes

Methods

QueryService(Guid, Guid, IntPtr)

Extension Methods

QueryService(IServiceProvider, Guid)

Gets a service exposed by a service provider based on its service GUID.

QueryService<TService>(IServiceProvider)

Gets a service exposed by a service provider based on its service type.

Applies to