Web.Publish Method
SharePoint Designer Developer Reference |
Publishes a Web site to a Web server.
Syntax
expression.Publish(DestinationUrl, PublishFlags, UserName, Password)
expression A variable that represents a Web object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
DestinationUrl | Required | String | 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 | WebPublishFlags | The flags to use when publishing the Web site. |
UserName | Optional | String | The name of the user who is publishing the Web site. |
Password | Optional | String | The password of the user. |
Remarks
Important
See Also