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