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

◆ BaseAddress

string System.Net.WebClient.BaseAddress
getset

Definition at line 143 of file WebClient.cs.

144 {
145 get
146 {
147 if (!(_baseAddress != null))
148 {
149 return string.Empty;
150 }
151 return _baseAddress.ToString();
152 }
153 [param: AllowNull]
154 set
155 {
156 if (string.IsNullOrEmpty(value))
157 {
158 _baseAddress = null;
159 return;
160 }
161 try
162 {
163 _baseAddress = new Uri(value);
164 }
165 catch (UriFormatException innerException)
166 {
167 throw new ArgumentException(System.SR.net_webclient_invalid_baseaddress, "value", innerException);
168 }
169 }
170 }
static string net_webclient_invalid_baseaddress
Definition SR.cs:22
Definition SR.cs:7
override string ToString()
Definition Uri.cs:1119