IAppHost.TryGetService<T> method
小于 1 分钟
IAppHost.TryGetService<T> method
尝试获取指定的服务
public static T? TryGetService<T>()| parameter | description |
|---|---|
| T | 要获取的服务类型 |
Return Value
如果获取成功,则返回获取到的服务,否则返回null
See Also
- interface IAppHost
- namespace neo_bpsys_wpf.Core
尝试获取指定的服务
public static T? TryGetService<T>()| parameter | description |
|---|---|
| T | 要获取的服务类型 |
如果获取成功,则返回获取到的服务,否则返回null