IUriNavigationService 接口
- 程序集
- ClassIsland.Core.dll
Uri导航服务,用于在ClassIsland内部和外部通过uri进行导航。
public interface IUriNavigationService : IPublicUriNavigationService
- 继承成员
属性
UriDomainApp
ClassIsland 应用导航主机名
public static string UriDomainApp { get; }
属性值
UriDomainPlugins
ClassIsland 插件导航主机名
public static string UriDomainPlugins { get; }
属性值
UriScheme
ClassIsland 内部的 uri 协议名
public static string UriScheme { get; }
属性值
方法
HandlePluginsNavigation(string, Action<UriNavigationEventArgs>)
注册插件导航主机下的导航处理程序。
void HandlePluginsNavigation(string path, Action<UriNavigationEventArgs> onNavigated)
参数
path
string导航路径
onNavigated
Action<UriNavigationEventArgs>导航处理程序
NavigateWrapped(Uri, out Exception?)
导航到指定 Uri,但在抛出异常时自动捕获,并显示错误提示。
void NavigateWrapped(Uri uri, out Exception? exception)