MarshalByValueComponent.GetService(Type) MarshalByValueComponent.GetService(Type) MarshalByValueComponent.GetService(Type) MarshalByValueComponent.GetService(Type) Method

定義

取得 IServiceProvider 的實作器。Gets the implementer of the IServiceProvider.

public:
 virtual System::Object ^ GetService(Type ^ service);
public virtual object GetService (Type service);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Public Overridable Function GetService (service As Type) As Object

參數

service
Type Type Type Type

Type,表示您想要服務的型別。A Type that represents the type of service you want.

傳回

Object,表示 IServiceProvider 的實作器。An Object that represents the implementer of the IServiceProvider.

實作

備註

如需有關您可以使用設計工具服務的詳細資訊,請參閱設計階段架構For more information on designer services you can use, see Design-Time Architecture.

適用於

另請參閱