10 writes to Url
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)
2028await Task.Run(() => control.Url = new Uri(file.Path)); 2042await Task.Run(() => control.Url = new Uri(file.Path)); 2075await Task.Run(() => control.Url = new Uri(file.Path)); 2080await Task.Run(() => control.Url = nullOrEmptyUri); 2090Assert.Throws<ArgumentException>(() => control.Url = relativeUri); 2102Assert.Throws<ObjectDisposedException>(() => control.Url = null); 2114Assert.Throws<InvalidOperationException>(() => control.Url = null);
TestPassApp (1)
CommonControl2.cs (1)
17webBrowser1.Url = new Uri($"file://{page}", UriKind.Absolute);
59 references to Url
System.Windows.Forms (3)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (3)
19[DefaultProperty(nameof(Url))] 1336private bool IsValidUrl => Url is null || Url.AbsoluteUri == "about:blank";
System.Windows.Forms.Tests (56)
System\Windows\Forms\WebBrowserTests.cs (56)
583Assert.Equal("about:blank", control.Url.OriginalString); 589Assert.Equal("about:blank", control.Url.OriginalString); 791Assert.Equal("about:blank", control.Url.OriginalString); 805Assert.Equal("about:blank", control.Url.OriginalString); 819Assert.Equal("about:blank", control.Url.OriginalString); 825Assert.Equal("about:blank", control.Url.OriginalString); 1905Assert.Null(control.Url); 1919Assert.Null(control.Url); 1940Assert.Equal(new Uri(file.Path), control.Url); 1952Assert.Throws<ObjectDisposedException>(() => control.Url); 1964Assert.Throws<InvalidOperationException>(() => control.Url); 2030Assert.Equal(new Uri(file.Path), control.Url); 2044Assert.Equal(new Uri(file.Path), control.Url); 2077Assert.Equal(new Uri(file.Path), control.Url); 2082Assert.Equal("about:blank", control.Url.OriginalString); 2856Assert.Null(control.Url); 2877Assert.Null(control.Url); 2981Assert.Null(control.Url); 2996Assert.Null(control.Url); 3096Assert.Null(control.Url); 3111Assert.Null(control.Url); 3145Assert.Null(control.Url); 3160Assert.Null(control.Url); 3252Assert.Equal(new Uri(file.Path), control.Url); 3266Assert.Equal(new Uri(file.Path), control.Url); 3293Assert.Equal(new Uri(file.Path), control.Url); 3298Assert.Equal("about:blank", control.Url.OriginalString); 3364Assert.Equal(new Uri(file.Path), control.Url); 3378Assert.Equal(new Uri(file.Path), control.Url); 3411Assert.Equal(new Uri(file.Path), control.Url); 3416Assert.Equal("about:blank", control.Url.OriginalString); 3935Assert.Null(control.Url); 3950Assert.Null(control.Url); 3990Assert.Equal(new Uri(file.Path), control.Url); 4002Assert.Equal(new Uri(file.Path), control.Url); 4048Assert.Equal("about:blank", control.Url.OriginalString); 4060Assert.Equal("about:blank", control.Url.OriginalString); 4078Assert.Null(control.Url); 4095Assert.Null(control.Url); 4137Assert.Equal(new Uri(file.Path), control.Url); 4149Assert.Equal(new Uri(file.Path), control.Url); 4197Assert.Equal("about:blank", control.Url.OriginalString); 4209Assert.Equal("about:blank", control.Url.OriginalString); 4238Assert.Null(control.Url); 4253Assert.Null(control.Url); 4275Assert.Null(control.Url); 4290Assert.Null(control.Url); 4312Assert.Null(control.Url); 4327Assert.Null(control.Url); 4349Assert.Null(control.Url); 4364Assert.Null(control.Url); 4386Assert.Null(control.Url); 4401Assert.Null(control.Url); 4423Assert.Null(control.Url); 4438Assert.Null(control.Url); 4769navigated = browser.Url.ToString();