Connection.Refresh Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Refreshes the connection to the server.
public:
bool Refresh();
public bool Refresh ();
member this.Refresh : unit -> bool
Public Function Refresh () As Boolean
Returns
true
if the method call was successful; otherwise, false
.
Examples
void doRefresh(IServiceProvider sp) {
Connection con = (Connection)sp.GetService(typeof(Connection));
con.Refresh();
}
Remarks
If the server is remote, the connection is dropped; if the credentials have changed, a logon dialog box will open.
Important
This method will probably be removed in a future release of IIS 7.