Component.GetService(Type) 方法
定义
protected:
virtual System::Object ^ GetService(Type ^ service);
protected virtual object? GetService (Type service);
protected virtual object GetService (Type service);
abstract member GetService : Type -> obj
override this.GetService : Type -> obj
Protected Overridable Function GetService (service As Type) As Object
参数
返回
表示由 Object 提供的服务的 Component,如果 Component 不提供指定的服务,则为 null
。An Object that represents a service provided by the Component, or null
if the Component does not provide the specified service.
注解
此方法可由派生类重写。This method can be overridden by a derived class.