IServiceProvider 介面

定義

提供全域唯一標識碼所識別之服務的存取權, (GUID) 。 如需詳細資訊,請參閱 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
衍生
屬性

方法

QueryService(Guid, Guid, IntPtr)

提供全域唯一標識碼所識別之服務的存取權, (GUID) 。 如需詳細資訊,請參閱 IServiceProvider。

擴充方法

QueryService(IServiceProvider, Guid)

根據服務提供者的服務 GUID 取得服務提供者所公開的服務。

QueryService<TService>(IServiceProvider)

根據服務提供者的服務類型,取得服務提供者所公開的服務。

適用於