10 writes to Url
Accessibility_Core_App (1)
CommonControl2.cs (1)
17webBrowser1.Url = new Uri($"file://{page}", UriKind.Absolute);
System.Windows.Forms (2)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
292Url = new Uri("about:blank"); 692Url = url; // Does null check in PerformNavigate2
System.Windows.Forms.Tests (7)
System\Windows\Forms\WebBrowserTests.cs (7)
2026await Task.Run(() => control.Url = new Uri(file.Path)); 2040await Task.Run(() => control.Url = new Uri(file.Path)); 2073await Task.Run(() => control.Url = new Uri(file.Path)); 2078await Task.Run(() => control.Url = nullOrEmptyUri); 2088Assert.Throws<ArgumentException>(() => control.Url = relativeUri); 2100Assert.Throws<ObjectDisposedException>(() => control.Url = null); 2112Assert.Throws<InvalidOperationException>(() => control.Url = null);
59 references to Url
System.Windows.Forms (3)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (3)
19[DefaultProperty(nameof(Url))] 1334private bool IsValidUrl => Url is null || Url.AbsoluteUri == "about:blank";
System.Windows.Forms.Tests (56)
System\Windows\Forms\WebBrowserTests.cs (56)
581Assert.Equal("about:blank", control.Url.OriginalString); 587Assert.Equal("about:blank", control.Url.OriginalString); 789Assert.Equal("about:blank", control.Url.OriginalString); 803Assert.Equal("about:blank", control.Url.OriginalString); 817Assert.Equal("about:blank", control.Url.OriginalString); 823Assert.Equal("about:blank", control.Url.OriginalString); 1903Assert.Null(control.Url); 1917Assert.Null(control.Url); 1938Assert.Equal(new Uri(file.Path), control.Url); 1950Assert.Throws<ObjectDisposedException>(() => control.Url); 1962Assert.Throws<InvalidOperationException>(() => control.Url); 2028Assert.Equal(new Uri(file.Path), control.Url); 2042Assert.Equal(new Uri(file.Path), control.Url); 2075Assert.Equal(new Uri(file.Path), control.Url); 2080Assert.Equal("about:blank", control.Url.OriginalString); 2854Assert.Null(control.Url); 2875Assert.Null(control.Url); 2979Assert.Null(control.Url); 2994Assert.Null(control.Url); 3094Assert.Null(control.Url); 3109Assert.Null(control.Url); 3143Assert.Null(control.Url); 3158Assert.Null(control.Url); 3250Assert.Equal(new Uri(file.Path), control.Url); 3264Assert.Equal(new Uri(file.Path), control.Url); 3291Assert.Equal(new Uri(file.Path), control.Url); 3296Assert.Equal("about:blank", control.Url.OriginalString); 3362Assert.Equal(new Uri(file.Path), control.Url); 3376Assert.Equal(new Uri(file.Path), control.Url); 3409Assert.Equal(new Uri(file.Path), control.Url); 3414Assert.Equal("about:blank", control.Url.OriginalString); 3933Assert.Null(control.Url); 3948Assert.Null(control.Url); 3988Assert.Equal(new Uri(file.Path), control.Url); 4000Assert.Equal(new Uri(file.Path), control.Url); 4046Assert.Equal("about:blank", control.Url.OriginalString); 4058Assert.Equal("about:blank", control.Url.OriginalString); 4076Assert.Null(control.Url); 4093Assert.Null(control.Url); 4135Assert.Equal(new Uri(file.Path), control.Url); 4147Assert.Equal(new Uri(file.Path), control.Url); 4195Assert.Equal("about:blank", control.Url.OriginalString); 4207Assert.Equal("about:blank", control.Url.OriginalString); 4236Assert.Null(control.Url); 4251Assert.Null(control.Url); 4273Assert.Null(control.Url); 4288Assert.Null(control.Url); 4310Assert.Null(control.Url); 4325Assert.Null(control.Url); 4347Assert.Null(control.Url); 4362Assert.Null(control.Url); 4384Assert.Null(control.Url); 4399Assert.Null(control.Url); 4421Assert.Null(control.Url); 4436Assert.Null(control.Url); 4767navigated = browser.Url.ToString();