Compartir a través de


VSWebProjectItem.UpdateLocalCopy Method

Updates the local copy of the project item.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
Function UpdateLocalCopy As String
string UpdateLocalCopy()
String^ UpdateLocalCopy()
abstract UpdateLocalCopy : unit -> string
function UpdateLocalCopy() : String

Return Value

Type: System.String
The local file name for the file.

Remarks

This method makes sure that the local copy of the project item file is up to date, copying the file from the server if necessary. It then returns the path of the local file. Changes to the file are automatically propagated to the server when the file is written. For local Web sites, this method will return the file name only. This method is applicable only for file objects.

.NET Framework Security

See Also

Reference

VSWebProjectItem Interface

VsWebSite Namespace