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