MarshalByValueComponent.GetService(Type) 方法

定义

获取 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,表示所需服务的类型。A Type that represents the type of service you want.

返回

Object

一个 Object,表示 IServiceProvider 的实施者。An Object that represents the implementer of the IServiceProvider.

实现

注解

有关可以使用的设计器服务的详细信息,请参阅 设计时体系结构For more information on designer services you can use, see Design-Time Architecture.

适用于

另请参阅