WorkflowView.GetService(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定类型的服务对象(如果可用)。
protected:
override System::Object ^ GetService(Type ^ serviceType);
protected override object GetService(Type serviceType);
override this.GetService : Type -> obj
Protected Overrides Function GetService (serviceType As Type) As Object
参数
返回
如果 serviceType 为 typeof(CommandID),则 GetService 返回特定的 CommandID;否则,GetService返回实现所请求服务的 Object;如果无法解析服务,则返回 null 引用(Nothing Visual Basic)。
注解
GetService 如果无法解析服务,则 Object 返回实现请求的服务,或者返回 null 引用 (Nothing)。