JABOSL
Programmer
- Jan 25, 2006
- 35
Can someone tell me exactly what these lines do?
Dim REQUEST As Net.HttpWebRequest
REQUEST.Timeout = 60000
REQUEST = Net.HttpWebRequest.Create(URL)
in line 1 you are saying request will be an instance of net.httpwebrequest.
in line 2 you are setting the timeout value of? The class httpwebrequest? or the instance of httpwebrequest?
is line 1 like saying x will be an integer and line 3 like saying x = 3? If so I guess line 2 is setting the property of the class timeout to 60000 which must be able to be done before a real object is created. Well, when is the object created? Line 1 or 3?
Dim REQUEST As Net.HttpWebRequest
REQUEST.Timeout = 60000
REQUEST = Net.HttpWebRequest.Create(URL)
in line 1 you are saying request will be an instance of net.httpwebrequest.
in line 2 you are setting the timeout value of? The class httpwebrequest? or the instance of httpwebrequest?
is line 1 like saying x will be an integer and line 3 like saying x = 3? If so I guess line 2 is setting the property of the class timeout to 60000 which must be able to be done before a real object is created. Well, when is the object created? Line 1 or 3?