Component.GetService(Type) 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 -> objProtected Overridable Function GetService (service As Type) As Object参数
返回
表示由 Object 提供的服务的 Component,如果 Component 不提供指定的服务,则为 null。
注解
此方法可由派生类重写。