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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for