コード例 #1
0
 /// <summary>
 /// Navigates to the specified URI.
 /// </summary>
 /// <param name="uri">The destination URI. This can be absolute, or relative to the base URI
 /// (as returned by <see cref="BaseUri"/>).</param>
 /// <param name="options">Provides additional <see cref="NavigationOptions"/>.</param>
 protected virtual void NavigateToCore(string uri, NavigationOptions options) =>
 throw new NotImplementedException($"The type {GetType().FullName} does not support supplying {nameof(NavigationOptions)}. To add support, that type should override {nameof(NavigateToCore)}(string uri, {nameof(NavigationOptions)} options).");
コード例 #2
0
 /// <summary>
 /// Navigates to the specified URI.
 /// </summary>
 /// <param name="uri">The destination URI. This can be absolute, or relative to the base URI
 /// (as returned by <see cref="BaseUri"/>).</param>
 /// <param name="options">Provides additional <see cref="NavigationOptions"/>.</param>
 public void NavigateTo(string uri, NavigationOptions options)
 {
     AssertInitialized();
     NavigateToCore(uri, options);
 }