Connection.Refresh Method

Definition

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