DesignerActionList.GetService(Type) 方法

定义

返回一个对象,该对象表示由与 DesignerActionList 相关联的组件提供的服务。Returns an object that represents a service provided by the component associated with the DesignerActionList.

public:
 System::Object ^ GetService(Type ^ serviceType);
public object GetService (Type serviceType);
member this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object

参数

serviceType
Type

Component 提供的服务。A service provided by the Component.

返回

一个 Object,表示由 Component 提供的服务。An Object that represents a service provided by the Component. 如果 Component 不提供指定的服务,则此值为 nullThis value is null if the Component does not provide the specified service.

适用于