Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Scheme

string System.UriBuilder.Scheme
getset

Definition at line 28 of file UriBuilder.cs.

29 {
30 get
31 {
32 return _scheme;
33 }
34 [param: AllowNull]
35 set
36 {
37 if (value == null)
38 {
39 value = string.Empty;
40 }
41 if (value.Length != 0)
42 {
44 {
45 int num = value.IndexOf(':');
46 if (num != -1)
47 {
48 value = value.Substring(0, num);
49 }
51 {
52 throw new ArgumentException(System.SR.net_uri_BadScheme, "value");
53 }
54 }
55 value = value.ToLowerInvariant();
56 }
57 _scheme = value;
58 _changed = true;
59 }
60 }
static string net_uri_BadScheme
Definition SR.cs:28
Definition SR.cs:7
static bool CheckSchemeName([NotNullWhen(true)] string? schemeName)
Definition Uri.cs:1072

Referenced by System.UriBuilder.UriBuilder(), and System.UriBuilder.ToString().