Publish Method
From Microsoft FrontPage Visual Basic
Publishes a Web site to a Web server.
expression.Publish(DestinationUrl, PublishFlags, UserName, Password)
expression An expression that returns a WebEx object.
DestinationUrl Required String. A string that contains the entire target URL for the Web site, such as “http://wwwroot/Adventure Works”. This can be any URL for a Web site, such as http://web server /folder or file://file system /folder for disk-based Web sites.
PublishFlags Optional FpWebPublishFlags.
| FpWebPublishFlags can be one of these FpWebPublishFlags constants. |
| fpPublishAddToExistingWeb |
| fpPublishCopyAllFiles |
| fpPublishCopySubwebs |
| fpPublishIncremental |
| fpPublishLogInTempDir |
| fpPublishNoDeleteUnmatched |
| fpPublishUseLastPublishTime |
| fpPublishNone default |
UserName Optional String. The name of the user who is publishing the Web site.
Password Optional String. The password of the user.
Note Avoid using hard-coded passwords in your applications. If a password is required in a procedure, request the password from the user, store it in a variable, and then use the variable in your code. For recommended best practices on how to do this, see Security Notes for Microsoft Office Solution Developers.