Returns the specified file to its prior state in the source control project without saving any changes that may have been made.
Note You must have a source control project in place before using this method. For information about source control projects, refer to Managing Source Control Projects.
expression.UndoCheckout
expression An expression that returns a WebFile object.
Example
The following example checks a file in to its prior state (its state before checkout). The file must be part of a source control project.
Note To run this procedure, you must have a source control project in place with a Web site open and a page called Zinfandel.htm contained in the Web site. Or, substitute an alternate Web site and file name.
Private Sub UndoCheckout()
Dim myWeb As WebEx
Set myWeb = ("C:/My Web Sites/Rogue Cellars")
myWeb.RootFolder.Files("Zinfandel.htm").UndoCheckout
End Sub