Visual Basic |
---|
Public Sub RefreshListing( _ ByVal smartUpdate As Boolean, _ ByVal refreshFromServer As Boolean, _ ByVal forceFullRefreshFromServer As Boolean _ ) |
To refresh the listing from the server, but preserving current selection and expand/collapse states, specify the parameters as follows:
smartUpdate = true
refreshFromServer = true
forceFullRefreshFromServer = false
For refreshing behavior that corresponds to pressing F5 in the listing window, specify the parameters as follows:
smartUpdate = false
refreshFromServer = true
forceFullRefreshFromServer = false
For refreshing behavior that corresponds to pressing Shift+F5 in the listing window, specify the parameters as follows:
smartUpdate = false
refreshFromServer = true
forceFullRefreshFromServer = true
Note that the F5 and Shitf+F5 commands in Windows Explorer perform some additional actions that this method does not perform. To invoke the exact same user-initiated behavior as the F5 and Shift+F5 commands perform, use the ExecuteCommand method to invoke the BuiltinCommand_Refresh or BuiltinCommand_RefreshFull command.
Supported in M-Files 10.1.3915.45 and newer.