ActivityDesigner.GetService(Type) 方法

定义

尝试从与设计器关联的活动的设计模式站点中检索指定的服务类型。

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

参数

serviceType
Type

要请求的服务的类型。

返回

如果无法解析服务,则实现所请求的服务或 null 引用的对象(Nothing in Visual Basic)。

适用于