WstFile.Copy Method (WstContext, String, WstContext, String)

[This is internal Microsoft documentation - Do not distribute.]

Copies an existing file to a new file. Overwriting a file of the same name is not allowed.

Namespace: Microsoft.Webstore.WstClient
Assembly: ICL (in icl.dll)

Syntax

'Declaration

  Public Shared Sub Copy ( _
    srcContext As WstContext, _
    srcPath As String, _
    destContext As WstContext, _
    destPath As String _
)
  public static void Copy (
    WstContext srcContext,
    string srcPath,
    WstContext destContext,
    string destPath
)

Parameters

  • srcContext
    Webstore source file context
  • srcPath
    The file to copy.
  • destContext
    Webstore destination file context
  • destPath
    The name of the destination file. This cannot be a directory or an existing file.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

WstFile Class
WstFile Members
Microsoft.Webstore.WstClient Namespace