ActivityDesigner.GetService(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试从与设计器关联的活动的设计模式站点中检索指定的服务类型。
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)。